1Catalyst::Action(3) User Contributed Perl Documentation Catalyst::Action(3)
2
3
4
6 Catalyst::Action - Catalyst Action
7
9 <form action="[%c.uri_for(c.action)%]">
10
11 $c->forward( $action->private_path );
12
14 This class represents a Catalyst Action. You can access the object for
15 the currently dispatched action via $c->action. See the
16 Catalyst::Dispatcher for more information on how actions are
17 dispatched. Actions are defined in Catalyst::Controller subclasses.
18
20 attributes
21 The sub attributes that are set for this action, like Local, Path,
22 Private and so on. This determines how the action is dispatched to.
23
24 class
25 Returns the name of the component where this action is defined.
26 Derived by calling the Catalyst::Component/catalyst_component_name
27 method on each component.
28
29 code
30 Returns a code reference to this action.
31
32 dispatch( $c )
33 Dispatch this action against a context.
34
35 execute( $controller, $c, @args )
36 Execute this action's coderef against a given controller with a given
37 context and arguments
38
39 match( $c )
40 Check Args attribute, and makes sure number of args matches the
41 setting. Always returns true if Args is omitted.
42
43 compare
44 Compares 2 actions based on the value of the "Args" attribute, with no
45 "Args" having the highest precedence.
46
47 namespace
48 Returns the private namespace this action lives in.
49
50 reverse
51 Returns the private path for this action.
52
53 private_path
54 Returns absolute private path for this action. Unlike "reverse", the
55 "private_path" of an action is always suitable for passing to
56 "forward".
57
58 name
59 Returns the sub name of this action.
60
61 meta
62 Provided by Moose.
63
65 Catalyst Contributors, see Catalyst.pm
66
68 This library is free software. You can redistribute it and/or modify it
69 under the same terms as Perl itself.
70
71
72
73perl v5.12.1 2009-11-22 Catalyst::Action(3)