GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

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

SYNOPSIS

         my $record = Jifty::DBI::Record->new(...);
         $record->input_filters( 'Jifty::DBI::Filter::Truncate',
                                 'Jifty::DBI::Filter::utf8'
                               );
         my @filters = $record->output_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.

   filters FILTERS
       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.

SEE ALSO

       Jifty::DBI::Filter



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.118 seconds. Last modified: November 04 2018 12:49:43.