1Catalyst::Action(3)   User Contributed Perl Documentation  Catalyst::Action(3)
2
3
4

NAME

6       Catalyst::Action - Catalyst Action
7

SYNOPSIS

9           <form action="[%c.uri_for(c.action.reverse)%]">
10

DESCRIPTION

12       This class represents a Catalyst Action. You can access the object for
13       the currently dispatched action via $c->action. See the Catalyst::Dis‐
14       patcher for more information on how actions are dispatched. Actions are
15       defined in Catalyst::Controller subclasses.
16

METHODS

18       attributes
19
20       The sub attributes that are set for this action, like Local, Path, Pri‐
21       vate and so on. This determines how the action is dispatched to.
22
23       class
24
25       Returns the class name where this action is defined.
26
27       code
28
29       Returns a code reference to this action.
30
31       dispatch( $c )
32
33       Dispatch this action against a context
34
35       execute( $controller, $c, @args )
36
37       Execute this action's coderef against a given controller with a given
38       context and arguments
39
40       match( $c )
41
42       Check Args attribute, and makes sure number of args matches the set‐
43       ting.  Always returns true if Args is omitted.
44
45       namespace
46
47       Returns the private namespace this action lives in.
48
49       reverse
50
51       Returns the private path for this action.
52
53       name
54
55       returns the sub name of this action.
56

AUTHOR

58       Matt S. Trout
59
61       This program is free software, you can redistribute it and/or modify it
62       under the same terms as Perl itself.
63
64
65
66perl v5.8.8                       2007-09-20               Catalyst::Action(3)
Impressum