Reaction::InterfaceModel::Collection::DBIC::Role::Base - Reaction::InterfaceModel::Collection::DBIC::Role::Base documentation


Reaction documentation  | view source Contained in the Reaction distribution.

Index


NAME

Top

Reaction::InterfaceModel::Collection::DBIC::Role::Base

DESCRIPTION

Top

Provides methods to allow a collection to be populated by a DBIx::Class::ResultSet

Attributes

Top

_source_resultset

Required, Read-only. Contains the DBIx::Class::ResultSet used to populate the collection.

member_type

Read-only, lazy_build. The name of the IM Object Class that the resultset inside this collection will inflate to. Predicate: has_member_type

METHODS

Top

clone

Returns a clone of the current collection, complete with a cloned _source_resultset

count_members

Returns the number of items found by the ResultSet

add_member

remove_member

These will die as they have not been implemented yet.

PRIVATE METHODS

Top

_build_im_class

Will attempt to remove the suffix "Collection" from the current class name and return that. I.e. MyApp::MyIM::Roles::Collection would return MyApp::MyIM::Roles

_build_collection_store

Replace the default builder to populate the collection with all results returned by the resultset.

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation  | view source Contained in the Reaction distribution.