Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Reaction::UI::ControllUserCContributediPerlUD::Controller::Collection::CRUD(3)

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

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 $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.

   _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! The	above document had some	coding errors, which are explained
       below:

       Around line 128:
	   Unknown directive: =over4

       Around line 130:
	   '=item' outside of any '=over'

perl v5.32.0			 Reaction::UI::Controller::Collection::CRUD(3)

NAME | DESCRIPTION | ROLES CONSUMED | METHODS | ACTIONS | SEE ALSO | AUTHORS | LICENSE | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Reaction::UI::Controller::Collection::CRUD&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help