The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Engine::V1 - Module concerning basic operation for Egg.

DESCRIPTION

This module is used to operate Egg basically.

As for this module, the thing replaced with the one originally developed is possible.

Please note the following respect when you replace it.

  • startup, setup

    The setup of the following value is completed with startup or setup.

      $e->global->{MODEL_LIST}
       ... It is HASH of which the value the key, and is the package name as for the model name.
    
      $e->global->{MODEL_CLASS}
       ... List of model name.
    
      $e->global->{VIEW_LIST}
       ... It is HASH of which the value the key, and is the package name as for the view name.
    
      $e->global->{VIEW_CLASS}
       ... List of view name. 
  • model, view

    The MODEL object and the VIEW object are returned, and it equips it with appropriate model and the view method.

  • start_engine

    It equips it with start_engine called from Egg::Engine.

If it meets the above-mentioned requirement, the Egg::Engine subclass is made.

It is also good to overwrite and to customize the method such as Egg::Engine of course.

The engine originally developed can be used by setting 'Engine_class'.

METHODS

startup, setup

Prior concerning the model and the view is processed.

step1

The following thing is done by processing 'step1'.

  1 ... The dispatch object is generated.
  2 ... If $e->finished is true, everything is canceled as follows.
  3 ... dispatch->_start is called.
  4 ... dispatch->_action is called.

step2

The following thing is done by processing 'step2'.

  1 ... If $e->finished is true, everything is canceled as follows.
  2 ... response->If body has defined it, only dispatch->_finish is called.
  3 ... The template is processed by $e->view->output. response->body is defined.
  4 ... response->status is set.

step3

The following thing is done by processing 'step3'.

  1 ... If response->content_type is undefined, default is set.
  2 ... $e->finalize is called. Postprocessing of plugin etc.
  3 ... $e->output_content is called. Contents are output to the client.

SEE ALSO

Egg::Engine, Egg::Release,

AUTHOR

Masatoshi Mizuno, <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 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.