當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Generator::__construct方法代碼示例

本文整理匯總了PHP中Generator::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Generator::__construct方法的具體用法?PHP Generator::__construct怎麽用?PHP Generator::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Generator的用法示例。


在下文中一共展示了Generator::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  *
  * @see crudigniter/generator/Generator#__construct()
  */
 public function __construct()
 {
     parent::__construct('Controller');
     $this->validate();
     $this->cache();
     $this->profile();
 }
開發者ID:joelviseu,項目名稱:CrudIgniter,代碼行數:12,代碼來源:ControllerGenerator.php

示例2: __construct

 public function __construct(ReportInterface $reportIfc, $repositoryName, $entityName, $service)
 {
     parent::__construct($reportIfc);
     $this->repositoryName = $repositoryName;
     $this->entityName = $entityName;
     $this->service = $service;
 }
開發者ID:zyxist,項目名稱:cantiga,代碼行數:7,代碼來源:RepositoryGenerator.php

示例3:

 function __construct($lines, $columns, $options)
 {
     if (!isset($options['character'])) {
         $options['character'] = '.';
     }
     parent::__construct($lines, $columns, $options);
 }
開發者ID:andrewsalveson,項目名稱:sc,代碼行數:7,代碼來源:Chaff.php

示例4: __construct

 public function __construct(ReportInterface $reportIfc, $name, $baseController, $routePrefix, $entityName, $repoService)
 {
     parent::__construct($reportIfc);
     $this->name = $name;
     $this->baseController = $baseController;
     $this->routePrefix = $routePrefix;
     $this->entityName = $entityName;
     $this->repoService = $repoService;
 }
開發者ID:zyxist,項目名稱:cantiga,代碼行數:9,代碼來源:CrudGenerator.php

示例5: __construct

 /**
  * ViewGenerator constructor.
  *
  * @param array $options [ extends=The name of view layout being used;
  *                         section=The name of section being used;
  *                         content=The view content;
  *                         template=The path of view template;
  *                         master=Create a master view;
  *                         plain=Create a blank view ]
  */
 public function __construct(array $options = array())
 {
     parent::__construct('view', $options);
     $this->extends = array_get($options, 'extends', 'layouts.master');
     $this->section = array_get($options, 'section', 'content');
     $this->content = array_get($options, 'content', null);
     $this->template = array_get($options, 'template', null);
     $this->master = array_get($options, 'master', false);
     $this->plain = array_get($options, 'plain', false);
 }
開發者ID:mayconbordin,項目名稱:laragen,代碼行數:20,代碼來源:ViewGenerator.php

示例6: __construct

 /**
  * Start the generation process.
  *
  * @return void
  */
 public function __construct($args)
 {
     parent::__construct($args);
     // we need a controller name
     if ($this->lower == null) {
         Common::error('You must specify a bundle name.');
     }
     // add the directory copy to the writer
     $this->writer->copy_directory('Bundle', $this->lower, Bundle::path('bob') . 'templates/bundle', path('bundle') . $this->lower);
     $this->writer->write();
 }
開發者ID:gigikiri,項目名稱:masjid-l3,代碼行數:16,代碼來源:bundle.php

示例7:

 function __construct($lines, $columns, $options)
 {
     if (!$options) {
         $options = [];
     }
     if (!isset($options['start_column'])) {
         $options['start_column'] = 0;
     }
     if (!isset($options['character'])) {
         $options['character'] = '\\';
     }
     parent::__construct($lines, $columns, $options);
 }
開發者ID:andrewsalveson,項目名稱:sc,代碼行數:13,代碼來源:BendDexter.php

示例8: __construct

 /**
  * Start the generation process.
  *
  * @return void
  */
 public function __construct($args)
 {
     parent::__construct($args);
     // we need a task name
     if ($this->class == null) {
         Common::error('You must specify a task name.');
     }
     // set switches
     $this->_settings();
     // start the generation
     $this->_task_generation();
     // write filesystem changes
     $this->writer->write();
 }
開發者ID:gigikiri,項目名稱:masjid-l3,代碼行數:19,代碼來源:task.php

示例9: __construct

 /**
  * Start the generation process.
  *
  * @return void
  */
 public function __construct($args)
 {
     parent::__construct($args);
     // we need a controller name
     if ($this->class == null) {
         Common::error('You must specify a model name.');
     }
     // load any command line switches
     $this->_settings();
     // start the generation
     $this->_model_generation();
     // write filesystem changes
     $this->writer->write();
 }
開發者ID:downleave,項目名稱:blog,代碼行數:19,代碼來源:model.php

示例10: __construct

 /**
  * Constants constructor.
  *
  * @param array $params
  * @uses Constants::setFileName()
  */
 public function __construct($params = array())
 {
     // set defaults
     $defaults = array('directory' => PHP_DIR, 'file_name' => 'gen_constants.php', 'log_level' => Log::LOG_LEVEL_WARNING, 'log_directory' => LOG_DIR, 'log_file' => 'db_' . date('Y-m-d') . '.log', 'user' => '', 'pass' => '', 'host' => 'localhost', 'db' => '', 'dump_file' => '');
     if (Helpers::is_array_ne($params)) {
         if (array_key_exists('file_name', $params)) {
             $this->setFileName($params['file_name']);
         }
         if (array_key_exists('table_name', $params) && Helpers::is_string_ne($params['table_name'])) {
             $this->constant_table = $params['table_name'];
             unset($params['table_name']);
         }
     } else {
         $this->setFileName($params['file_name']);
     }
     // set up parameters
     $params = array_merge($defaults, $params);
     // initialize generator class
     parent::__construct($params);
     $this->Log->write('done constructing ' . __METHOD__, Log::LOG_LEVEL_SYSTEM_INFORMATION);
 }
開發者ID:mts7,項目名稱:mtsapps-framework,代碼行數:27,代碼來源:Constants.php

示例11: __construct

 /**
  * 
  * @param type $formRoute
  * @param type $extraParams
  * @param type $productVersion
  */
 public function __construct($formRoute, $extraParams = array(), $productVersion = '')
 {
     parent::__construct($formRoute, $extraParams, $productVersion);
 }
開發者ID:rk4an,項目名稱:centreon,代碼行數:10,代碼來源:Cli.php

示例12:

 function __construct()
 {
     parent::__construct();
     $this->module_size = 4;
     $this->quiet_zone = 4;
 }
開發者ID:uzulla,項目名稱:qrcode-php,代碼行數:6,代碼來源:Image.php

示例13: __construct

 /**
  * Constructor
  *
  * @see crudigniter/generator/Generator#__construct()
  */
 public function __construct()
 {
     parent::__construct('View');
     $this->listViews();
     $this->hasValidation();
 }
開發者ID:joelviseu,項目名稱:CrudIgniter,代碼行數:11,代碼來源:ViewGenerator.php

示例14: __construct

 /**
  * Constructor
  *
  * @see crudigniter/generator/Generator#__construct()
  */
 public function __construct()
 {
     parent::__construct('Model');
 }
開發者ID:joelviseu,項目名稱:CrudIgniter,代碼行數:9,代碼來源:ModelGenerator.php

示例15: __construct

 /**
  * SeedGenerator constructor.
  *
  * @param array $options [ master=Create a master seed ]
  */
 public function __construct(array $options = array())
 {
     parent::__construct('seed', $options);
     $this->master = array_get($options, 'master', false);
 }
開發者ID:mayconbordin,項目名稱:laragen,代碼行數:10,代碼來源:SeedGenerator.php


注:本文中的Generator::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。