GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Reaction::UI::Controller::Role::GetCollection(3) User Contributed Perl Documentation Reaction::UI::Controller::Role::GetCollection(3)

Reaction::UI::Controller::Role::GetCollection

Provides a "get_collection" method, which fetches an "Collection" object from a specified model.

    package MyApp::Controller::Foo;

    use base 'Reaction::Controller';
    use Reaction::Class;

    with 'Reaction::UI::Controller::Role::GetCollection';

    __PACKAGE__->config( model_name => 'MyAppIM', collection_name => 'foos' );

    sub bar :Local {
      my($self, $c) = @_;
      my $obj = $self->get_collection($c)->find( $some_key );
    }

The name of the model this controller will use as it's data source. Should be a name that can be passed to "$C->model"

The name of the collection whithin the model that this Controller will be utilizing.

Returns an instance of the collection this controller uses.

Reaction::UI::Controller
Reaction::UI::Controller::Role::Action::Simple
Reaction::UI::Controller::Role::Action::Object
Reaction::UI::Controller::Role::Action::List
Reaction::UI::Controller::Role::Action::View
Reaction::UI::Controller::Role::Action::Create
Reaction::UI::Controller::Role::Action::Update
Reaction::UI::Controller::Role::Action::Delete
Reaction::UI::Controller::Role::Action::DeleteAll

See Reaction::Class for authors.

See Reaction::Class for the license.

Hey! The above document had some coding errors, which are explained below:
Around line 74:
Unknown directive: =over4
Around line 76:
'=item' outside of any '=over'
2010-10-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.