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::Action::Simple(3) User Contributed Perl Documentation Reaction::UI::Controller::Role::Action::Simple(3)

Reaction::UI::Controller::Role::Action::Simple

Provides a "setup_viewport" method, which makes it easier to setup and configure a viewport in controller actions.

    package MyApp::Controller::Foo;

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

    with 'Reaction::UI::Controller::Role::Action::Simple';

    __PACKAGE__->config(
      action_viewport_map => { bar => 'Reaction::UI::Viewport::Object' },
      action_viewport_args => { location => 'custom-location' },
    );

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

_build_action_viewport_map - Returns empty hashref by default.
has_action_viewport_map - Auto generated predicate
clear_action_viewport_map- Auto generated clearer method

Read-write lazy building hashref. The keys should match action names in the Controller and the value should be the ViewPort class that this action should use.

Read-write lazy building hashref. Additional ViewPort arguments for the action named as the key in the controller.
_build_action_viewport_args - Returns empty hashref by default.
has_action_viewport_args - Auto generated predicate
clear_action_viewport_args- Auto generated clearer method

Accepts two arguments, context, and a hashref of viewport arguments. It will automatically determine the action name using the catalyst stack and call "push_viewport" with the ViewPort class name contained in the "action_viewport_map" with a set of options determined by merging $vp_args and the arguments contained in "action_viewport_args", if any.

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 104:
Unknown directive: =over4
Around line 106:
'=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.