DBIx::Class::ResultSet::Faceter::Facet::CodeRef - Faceting via a CodeRef
$faceter->add_facet('CodeRef', { name => 'Fancy User Stuff', code => sub { my $row = shift; # Do something crazy with #row } });
Used when the row isn't capable (alone) of doing what is needed. Allows a CodeRef that is invoked for each row. The return value of the CodeRef is used as the facet.
The name of the key to facet on.
Returns the name of the specified column.
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2010 Cold Hard Code, LLC
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install DBIx::Class::ResultSet::Faceter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::ResultSet::Faceter
CPAN shell
perl -MCPAN -e shell install DBIx::Class::ResultSet::Faceter
For more information on module installation, please visit the detailed CPAN module installation guide.