Revision b8388d68
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
SL/Request.pm | ||
---|---|---|
18 | 18 |
|
19 | 19 |
use Rose::Object::MakeMethods::Generic |
20 | 20 |
( |
21 |
scalar => [ qw(applying_database_upgrades) ], |
|
21 |
scalar => [ qw(applying_database_upgrades routing_type controller action) ],
|
|
22 | 22 |
'scalar --get_set_init' => [ qw(cgi layout presenter is_ajax type) ], |
23 | 23 |
); |
24 | 24 |
|
... | ... | |
538 | 538 |
|
539 | 539 |
Returns the requested content type (either C<html>, C<js> or C<json>). |
540 | 540 |
|
541 |
=item C<controller> |
|
542 |
|
|
543 |
Returns the name of the current controller. This is either the base |
|
544 |
name of a script in C<bin/mozilla> (e.g. C<oe>; for the old routing |
|
545 |
type) or the base name of one of the packages in C<SL/Controller> |
|
546 |
(e.g. C<BackgroundJob>; for the new controller routing type). |
|
547 |
|
|
548 |
=item C<action> |
|
549 |
|
|
550 |
Returns the name of the current action. |
|
551 |
|
|
552 |
=item C<routing_type> |
|
553 |
|
|
554 |
Returns the routing type. This depends on the requested controller. It |
|
555 |
can be either C<old> for one of the scripts in C<bin/mozilla> or |
|
556 |
C<controller> for one of the new controllers in C<SL/Controller>. |
|
557 |
|
|
541 | 558 |
=item C<layout> |
542 | 559 |
|
543 | 560 |
Set and retrieve the layout object for the current request. Must be an instance |
Auch abrufbar als: Unified diff
Dispatcher: aktuellen Controller, Action, Routing-Typ in Request-Objekt speichern