NAME
DBIx::Class::ResultSet::Faceter::Facet::Column - Simple faceting on a column
SYNOPSIS
$faceter->add_facet('Column', {
name => 'Last Name', column => 'name_last'
});
# or
$faceter->add_facet('Date Created', {
name => 'Last Name', column => 'date_created.ymd'
});
DESCRIPTION
Returns the value of the specified column. Used in situations where the facet desired in the unmodified value of a column.
ATTRIBUTES
column
The name of the column to facet on. If the name contains dots then it is split and each method is invoked on the value of the previous invocation. In other words if the column name is owner.identity.name
then the result will be the same as $row-
owner->identity->name>. This is suitable for both DBIx::Class relationships and for columns that return objects, such as a DateTime.
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.