Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Base
  • ZendPHP
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: /**
 3:  * @author Jefferson González
 4:  * @license MIT
 5:  * @link http://github.com/peg-org/peg-custom Source code.
 6:  */
 7: 
 8: namespace Peg\Custom\Command\Action\Generate;
 9: 
10: use Peg\Custom\Application;
11: 
12: /**
13:  * Implements a zendphp engine generator action using \Peg\Lib\Generator\ZendPHP.
14:  * @see \Peg\Lib\Generator\ZendPHP
15:  */
16: class ZendPHP extends \Peg\Custom\Command\Action\Generate\Base
17: {
18:     
19:     /**
20:      * Initialize this action to be for engine zendphp.
21:      */
22:     public function __construct()
23:     {
24:         parent::__construct("zendphp");
25:     }
26: 
27:     /**
28:      * Initializes the generator process.
29:      */
30:     public function Start()
31:     {   
32:         $generator = new \Peg\Lib\Generator\ZendPHP(
33:             "templates", 
34:             ".", 
35:             Application::GetDefinitions()
36:         );
37:         
38:         $generator->Start();
39:     }
40: 
41: }
PEG Api API documentation generated by ApiGen 2.8.0