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


Reaction documentation  | view source Contained in the Reaction distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

This role also consumes the following roles:

METHODS

Top

get_model_action $c, $action_name, $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 $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 $c, $vp, $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 (Reaction::UI::ViewPort::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

Top

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

Top

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

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation  | view source Contained in the Reaction distribution.