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::ROLE::ACTION::UPDATE (3)

.ds Aq ’

NAME

Reaction::UI::Controller::Role::Action::Update - Update action

CONTENTS

DESCRIPTION

Provides a update action, which sets up an Action Viewport by calling action_for on the object located in the object slot of the stash.

SYNOPSYS



    package MyApp::Controller::Foo;

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

    with(
      Reaction::UI::Controller::Role::GetCollection,
      Reaction::UI::Controller::Role::Action::Simple,
      Reaction::UI::Controller::Role::Action::Object,
      Reaction::UI::Controller::Role::Action::Update
    );

    __PACKAGE__->config( action => {
      object => { Chained => base },
      update => { Chained => object },
    } );

    sub base :Chained(/base) :CaptureArgs(0) {
      ...
    }

    sub on_update_apply_callback{ #optional callback
      my($self, $c, $vp, $result) = @_;
      ...
    }

    sub on_update_close_callback{ #optional callback
      my($self, $c, $vp) = @_;
      ...
    }



ROLES CONSUMED

This role also consumes the following roles:
Reaction::UI::Controller::Role::Action::Simple

REQUIRED METHODS

The following methods must be provided by the consuming class:
make_context_closure

ACTIONS

    update

Chain endpoint with no args, sets up the viewport with the appropriate action. If the methods on_update_apply_callback and on_update_close_callback are present in the consuming class, they will be used as callbacks in the viewport.

METHODS

    _build_action_viewport_map

Extends to set the delete key in the map to Reaction::UI::ViewPort::Action

SEE ALSO

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

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 83: Unknown directive: =over4
Around line 85: ’=item’ outside of any ’=over’
Around line 93: Unknown directive: =over4
Around line 95: ’=item’ outside of any ’=over’
Around line 115: Unknown directive: =over4
Around line 117: ’=item’ outside of any ’=over’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REACTION::UI::CONTROLLER::ROLE::ACTION::UPDATE (3) 2010-10-29

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