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

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 - The result of a faceting operation

SYNOPSIS ^

DESCRIPTION ^

ATTRIBUTES ^

count

The number of facets in this result.

facets

A HashRef of facets in the form of:

  {
    'facet_name_1' => [
        { 'facet_value_A' => $count_A },
        { 'facet_value_B' => $count_B }
    ],
    'facet_name_2' => [
        { 'facet_value_A' => $count_A },
        { 'facet_value_B' => $count_B }
    ]
  }

The facets will be in whatever order you specified them to be in when you added the facet to the DBIx::Class::ResultSet::Faceter.

METHODS ^

count

Count of facets in this result.

names

An array of facet names in this Result.

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: