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


PHP Shell::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * __construct
  * @param type $stdout
  * @param type $stderr
  * @param type $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->Config = new OvenConfig();
     $this->stdout->styles('good', array('text' => 'green'));
     $this->stdout->styles('bad', array('text' => 'red'));
     $this->stdout->styles('ok', array('text' => 'yellow'));
 }
開發者ID:shama,項目名稱:oven,代碼行數:14,代碼來源:OvenAppShell.php

示例2:

 /**
  * Override initialize
  *
  * @access public
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
     if (!class_exists('CakeSchema')) {
         App::import('Model', 'CakeSchema', false);
     }
 }
開發者ID:joseluistorres,項目名稱:miacupones,代碼行數:13,代碼來源:fixture.php

示例3: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     $this->setTerminalWidth();
     App::import('Core', 'Router');
     InfinitasPlugin::loadForInstaller();
     parent::__construct($stdout, $stderr, $stdin);
     $this->__verbose = isset($this->params['verbose']) && $this->params['verbose'];
 }
開發者ID:nani8124,項目名稱:infinitas,代碼行數:8,代碼來源:AppShell.php

示例4: __construct

 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     /**
      * Configure output variable to log to screen
      * rather than string.
      */
     Configure::write('log_output', true);
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:9,代碼來源:SqsTask.php

示例5: __construct

 /**
  * @param ShellDispatcher $Dispatcher
  */
 public function __construct($Dispatcher)
 {
     parent::__construct($Dispatcher);
     App::import('Vendor', 'Eventful.Startup');
     // bootstrap
     $this->Dispatcher = $Dispatcher;
     $this->CakeEvents = CakeEvents::getInstance();
     $listeners = $this->CakeEvents->loadListeners('shells');
     foreach ($listeners as $class => $params) {
         extract($params);
         $this->listeners[$class] = $this->CakeEvents->addListener($className, $eventType, $pluginDir);
     }
 }
開發者ID:ketanshah79,項目名稱:eventful-cakephp,代碼行數:16,代碼來源:event.php

示例6: __construct

 /**
  * UpdateEventsTask constructor.
  *
  * @param ConsoleOutput|null $stdout
  * @param ConsoleOutput|null $stderr
  * @param ConsoleInput|null $stdin
  * @throws Exception
  */
 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->bus = new EventBus();
     if (YOUNIQUE_TESTSERVER == true && !defined('TEST_AWS_KEY') && !defined('TEST_AWS_SECRET')) {
         throw new Exception("TEST_AWS_KEY missing from bootstrap");
     }
     if (defined('TEST_AWS_KEY') && defined('TEST_AWS_SECRET')) {
         $this->bus_api = new BusAPI(TEST_AWS_KEY, TEST_AWS_SECRET);
     } else {
         $this->bus_api = new BusAPI();
     }
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:21,代碼來源:UpdateEventsTask.php

示例7: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->TwigView = new TwigView();
 }
開發者ID:alanrodas,項目名稱:TwigView,代碼行數:5,代碼來源:CompileTemplatesShell.php

示例8: __construct

 /**
  * LoadAllPresentersTask constructor.
  *
  * @param ConsoleOutput|null $stdout
  * @param ConsoleOutput|null $stderr
  * @param ConsoleInput|null $stdin
  */
 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->bus = new EventBus();
 }
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:12,代碼來源:LoadAllPresentersTask.php

示例9:

 /**
  *  Constructs this Shell instance.
  *
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->directories();
 }
開發者ID:rchavik,項目名稱:cake_admin,代碼行數:9,代碼來源:admin_controller.php

示例10: __construct

 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->PermissionsExtras = new PermissionsExtras();
 }
開發者ID:simkimsia,項目名稱:permissions-extras,代碼行數:8,代碼來源:PermissionsExtrasShell.php

示例11: __construct

 public function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->lastTime = microtime(true);
 }
開發者ID:nani8124,項目名稱:infinitas,代碼行數:5,代碼來源:CronResourceTask.php

示例12: __construct

 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->_UsersOperator = new UsersOperator();
 }
開發者ID:vladshish,項目名稱:usershell,代碼行數:8,代碼來源:UserShell.php

示例13: __construct

 /**
  *  Constructs this Shell instance.
  *
  */
 public function __construct(&$template)
 {
     $this->Template = $template;
     parent::__construct($template->stdout, $template->stderr, $template->stdin);
 }
開發者ID:pmoraes,項目名稱:templates,代碼行數:9,代碼來源:SubTemplateShell.php

示例14:

 /**
  * Override initialize
  *
  * @access public
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
 }
開發者ID:surfingtonio,項目名稱:flashub.com,代碼行數:10,代碼來源:fixture.php

示例15: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->lockPath = ROOT . '/app/Console/Lock/';
 }
開發者ID:pdkhuong,項目名稱:BBG,代碼行數:5,代碼來源:AppShell.php


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