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


Manual Reference Pages  -  REACTION::UI::CONTROLLER::COLLECTION::CRUD (3)

.ds Aq ’

NAME

Reaction::UI::Controller::Collection::CRUD - Basic CRUD functionality for Reaction::InterfaceModel data

CONTENTS

DESCRIPTION

Controller class which extends Reaction::UI::Controller::Collection to provide basic Create / Update / Delete / DeleteAll actions.

Building on the base of the Collection controller this controller allows you to easily create complex and highly flexible CRUD functionality for your InterfaceModel models by providing a simple way to render and process your custom InterfaceModel Actions and customize built-ins.

ROLES CONSUMED

This role also consumes the following roles:
Reaction::UI::Controller::Role::Action::Create
Reaction::UI::Controller::Role::Action::Update
Reaction::UI::Controller::Role::Action::Delete
Reaction::UI::Controller::Role::Action::DeleteAll

METHODS

get_model_action CW$c, CW$action_name, CW$target_im

DEPRECATED. Get an instance of the $action_name InterfaceModel::Action for model $target This action is suitable for passing to an Action|Reaction::UI::ViewPort::Action viewport

basic_model_action CW$c, \%vp_args

DEPRECTAED extension to basic_page which automatically instantiates an InterfaceModel::Action with the right data target using get_model_action

after_create_callback CW$c, CW$vp, CW$result

When a <create> action is applied, move the user to the new object’s, update page.

    _build_action_viewport_map

Map list to ListView.

    _build_default_member_actions

Add update and delete to the list of default actions.

    _build_default_collection_actions

Add create and delete_all to the list of default actions.

ACTIONS

    create

Chained to base. See Reaction::UI::Controller::Role::Action::Create

    delete_all

Chained to base. See Reaction::UI::Controller::Role::Action::DeleteAll

    update

Chained to object. See Reaction::UI::Controller::Role::Action::Update

    delete

Chained to object. See Reaction::UI::Controller::Role::Action::Delete

SEE ALSO

Reaction::UI::Controller::Collection, Reaction::UI::Controller

AUTHORS

See Reaction::Class for authors.

LICENSE

See Reaction::Class for the license.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 128: Unknown directive: =over4
Around line 130: ’=item’ outside of any ’=over’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REACTION::UI::CONTROLLER::COLLECTION::CRUD (3) 2010-10-29

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