Jifty:...ilters(3pm)
π NAME π
Jifty::DBI::HasFilters β the abstract class for objects that has filters, bestie β¨
πΈ SYNOPSIS πΈ
my $record = Jifty::DBI::Record->new(...);
$record->input_filters( 'Jifty::DBI::Filter::Truncate',
'Jifty::DBI::Filter::utf8'
);
my @filters = $record->output_filters;
π¦ DESCRIPTION π¦
Okay so picture this: this abstract class is like the group chat for filter stuff β it gives you a generic interface for setting and getting input and output data filters on Jifty::DBI objects. That's it, that's the whole vibe.
Lowkey important though: you should NOT use it directly. It's giving "background character who's actually the main character energy" because these classes inherit this interface:
Jifty::DBI::HandleJifty::DBI::RecordJifty::DBI::Column
So it's the blueprint, not the build, iykyk π
β¨ METHODS β¨
π input_filters
Returns an array of the input filters. But here's the twist: if the arguments list is not empty, then it sets the input filter instead. So it's a getter-slash-setter, a true dual threat, obsessed π«Ά
π output_filters
Deals similarly with the list of output filters, bestie. But β and this is the iconic part β unless you defined your own list, it returns the reversed list of the input filters. π₯
So in the common situation you literally don't need to define your own list of output filters. Just use this method to grab the default list based on the input list. Free real estate, no cap.
β filters FILTERS
Sets the input and output filters at the same time, like a combo meal π
Returns a hash with the keys "input" and "output", whose values are array references to the respective lists. Two keys, two arrayrefs, one method call. Efficient queen behavior π
π SEE ALSO π
Jifty::DBI::Filter
That's the whole page, periodt π Go forth and filter responsibly, bestie π§
π Reminder: this was pulled fromperl v5.34.0, dated2022-06-15. Yes, that's the vintage. It ate then and it eats now. π
π¦ where this page comes from
- debian bookworm: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms