Egg::Plugin::Dispatch - It is a base class for Dispatch.
use base qw/Egg::Plugin::Dispatch/; __PACKAGE__->run_modes( ... ); __PACKAGE__->default_mode( ... ); $e->dispatch;
This is a base class for the Dispatch plugin.
To do the function as Dispatch of Egg, necessary minimum method is offered.
Received RUN_MODE_HASH is set in the global variable of the project.
RUN_MODE_HASH set to omit RUN_MODE_HASH is returned.
__PACKAGE__->run_modes ( _default => sub {}, hoge => sub { ... }, );
Received DEFAULT_MODE is set in the global variable of the project.
* '_' is put when there is no first '_' of the character string.
DEFAULT_MODE set to omit DEFAULT_MODE is returned.
* Default is '_default'.
__PACKAGE__->default_mode( '_index' )
Alias: start_mode
The parameter name to decide the action of dispatch is setup.
__PACKAGE__->mode_param( 'mode' );
* If the access control of the URI base is done, it is not necessary to set it especially.
The exception is generated when there is no dispatch method in the succession class.
Basic method for main body of dispatch.
Accessor to Egg object.
Accessor to $e->stash. * However, contents are the HASH references.
Accessor to HASH reference set with run_modes.
Accessor for storage of list of matched run_modes key.
* The thing that is the ARRAY reference is hoped for without fail.
Accessor for label and list storage picked up from action.
Accessor that assumes thing that label or key to action finally matched is put.
Accessor to value set in default_mode.
The value of 'template_default_name' of $e->config is returned.
Constructor.
shift->SUPER::new(@_);
The URI passing to decided action is assembled and it returns it.
Method that is called from Egg for the most much correspondence to hook for the first dispatch.
Method of favorite that is called from Egg for dispatch processing.
Method that is called from Egg for the most much correspondence to hook for the last dispatch.
Alias to '_initialize' method.
* Any method of '_initialize' of this module is not done.
It is a method that calls from Egg::Helper::BlankPage.
For contents offer of sample Dispatch published in sample page.
Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.