Cory G Watson > DBIx-Class-ResultSet-Faceter > DBIx::Class::ResultSet::Faceter::Facet::CodeRef

Download:
DBIx-Class-ResultSet-Faceter-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

DBIx::Class::ResultSet::Faceter::Facet::CodeRef - Faceting via a CodeRef

SYNOPSIS ^

  $faceter->add_facet('CodeRef', {
        name => 'Fancy User Stuff',
        code => sub { my $row = shift; # Do something crazy with #row }
  });

DESCRIPTION ^

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.

ATTRIBUTES ^

code

The name of the key to facet on.

METHODS ^

process

Returns the name of the specified column.

AUTHOR ^

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE ^

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.

syntax highlighting: