logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Jifty::DBI::HasFilters - abstract class for objects that has filters

Description

       This abstract class provide generic interface for setting and getting input and output data filters for
       Jifty::DBI objects.  You shouldn't use it directly, but Jifty::DBI::Handle, Jifty::DBI::Record and
       Jifty::DBI::Column classes inherit this interface.

Methods

input_filters
       Returns array of the input filters, if arguments list is not empty then set input filter.

   output_filters
       Deals similar with list of output filters, but unless you defined own list returns reversed list of the
       input filters. In common situation you don't need to define own list of output filters, but use this
       method to get default list based on the input list.

   filtersFILTERS
       Sets the input and output filters at the same time.  Returns a hash, with keys "input" and "output",
       whose values are array references to the respective lists.

Name

       Jifty::DBI::HasFilters - abstract class for objects that has filters

See Also

       Jifty::DBI::Filter

perl v5.34.0                                       2022-06-15                        Jifty::DBI::HasFilters(3pm)

Synopsis

         my $record = Jifty::DBI::Record->new(...);
         $record->input_filters( 'Jifty::DBI::Filter::Truncate',
                                 'Jifty::DBI::Filter::utf8'
                               );
         my @filters = $record->output_filters;

See Also