当前位置: 首页>>代码示例>>PHP>>正文


PHP AppShell::__construct方法代码示例

本文整理汇总了PHP中AppShell::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AppShell::__construct方法的具体用法?PHP AppShell::__construct怎么用?PHP AppShell::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppShell的用法示例。


在下文中一共展示了AppShell::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->client = S3Client::factory(["key" => AWS_NETSUITE_INTEGRATION_KEY, "secret" => AWS_NETSUITE_INTEGRATION_SECRET]);
     $this->Item = ClassRegistry::init('Item');
     $this->ItemsItems = ClassRegistry::init('ItemsItems');
     $this->ItemPrice = ClassRegistry::init('ItemPrices');
     $this->ItemAvailabilityTimes = ClassRegistry::init('ItemAvailabilityTimes');
     $this->NetsuiteAudit = ClassRegistry::init('NetsuiteAudit');
     $this->NetSuite = ClassRegistry::init('NetSuite');
     $this->ItemShipmentClass = ClassRegistry::init('ItemShipmentClass');
     $this->Item->useDbConfig = 'default';
     $this->ItemPrice->useDbConfig = 'default';
     $this->ItemAvailabilityTimes->useDbConfig = 'default';
     $this->ItemShipmentClass->useDbConfig = 'default';
     $this->ItemsItems->useDbConfig = 'default';
     $this->email = 'netsuite_api@youniqueproducts.com';
     /***********     Populate $this->Markets      ***************
      * Caution: There are two class variable with similar names:
      * 1. $this->Markets (plural) is an array of compiled market data.
      * 2. $this->Market  (singular) is the instantiation for the Market model.
      */
     $this->_loadMarkets();
     $this->stdout->styles('magenta', array('text' => 'magenta'));
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:25,代码来源:NetSuiteShell.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $date = new DateTime();
     $date->sub(new DateInterval('P3M'));
     $this->suspension_month = $date->format("Y-m-01 00:00:00");
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:7,代码来源:PresenterHourlyShell.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->Order = ClassRegistry::init('Order');
     $this->client = S3Client::factory(["key" => "AKIAJVCBLQ3VQQS3DJHA", "secret" => "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"]);
     $this->bucket = "younique-reports";
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:7,代码来源:WmsShell.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     App::import("Model", "Presenter");
     $this->Presenter = new Presenter();
     //$this->Presenter->setDataSource('persistent');
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:7,代码来源:NestedsetShell.php

示例5: __construct

 /**
  * Init ExtensionsInstaller, CroogoPlugin, CroogoTheme
  *
  * @param type $stdout
  * @param type $stderr
  * @param type $stdin 
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->_ExtensionsInstaller = new ExtensionsInstaller();
     $this->_CroogoPlugin = new CroogoPlugin();
     $this->_CroogoTheme = new CroogoTheme();
 }
开发者ID:romaing,项目名称:croogo-rg,代码行数:14,代码来源:InstallShell.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->Estatistica = new Estatistica();
     $this->EstatisticaTransicao = new EstatisticaTransicao();
     ini_set('memory_limit', '1G');
     Cache::config('_cake_model_', array('engine' => 'File', 'prefix' => 'shell' . 'cake_model_', 'path' => CACHE . 'models' . DS, 'serialize' => true, 'duration' => '+999 days'));
 }
开发者ID:TerrasAppSolutions,项目名称:seeg-mapbiomas-workspace,代码行数:8,代码来源:StatsinputShell.php

示例7: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->times['months'][date('m')] = 1;
     $this->times['days'][date('j')] = 1;
     $this->times['hours'][date('H')] = 1;
     $this->times['minutes'][date('i')] = 1;
     Configure::write('debug', 2);
 }
开发者ID:nani8124,项目名称:infinitas,代码行数:9,代码来源:CronShell.php

示例8: __construct

 /**
  *  Constructs this Shell instance.
  *
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->templateDir = array();
     $this->templateDir[] = dirname(__FILE__);
     $this->templateDir[] = '..';
     $this->templateDir[] = '..';
     $this->templateDir[] = 'Lib';
     $this->templateDir[] = 'Templates';
     $this->templateDir = implode(DS, $this->templateDir);
 }
开发者ID:johnulist,项目名称:cakephp-admin,代码行数:15,代码来源:AdminShell.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     ini_set("max_execution_time", 60000);
     ini_set("memory_limit", "4000M");
     $this->Accomplishment = ClassRegistry::init('Accomplishment');
     $this->Item = ClassRegistry::init('Item');
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->PresenterPromotionPoints = ClassRegistry::init('PresenterPromotionPoints');
     $this->PresenterType = ClassRegistry::init('PresenterType');
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:11,代码来源:PromotionShell.php

示例10: __construct

 /**
  * __construct
  *
  * Ensure that required tasks are loaded, account for simple declaration
  * or declaring with options
  *
  * @param mixed $stdout
  * @param mixed $stderr
  * @param mixed $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     $requiredTasks = array('Common.ProccessManagement', 'Common.GearmanWorker');
     $existingTasks = TaskCollection::normalizeObjectArray($this->tasks);
     foreach ($requiredTasks as $task) {
         list(, $name) = pluginSplit($task);
         if (!isset($existingTasks[$name])) {
             $this->tasks[] = $task;
         }
     }
     parent::__construct($stdout, $stderr, $stdin);
 }
开发者ID:nodesagency,项目名称:Platform-Common-Plugin,代码行数:22,代码来源:BaseGearmanShell.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->Item = ClassRegistry::init("Item");
     $this->ItemAvailabilityTimes = ClassRegistry::init("ItemAvailabilityTimes");
     $this->Order = ClassRegistry::init('Order');
     $this->OrderShipmentMethod = ClassRegistry::init('OrderShipmentMethod');
     $this->Presenter = ClassRegistry::init('Presenter');
     $this->PresenterPromotionAward = ClassRegistry::init('PresenterPromotionAward');
     $this->PresenterPromotionPoints = ClassRegistry::init('PresenterPromotionPoints');
     $this->ProductCredit = ClassRegistry::init('ProductCredit');
     $this->UserNote = ClassRegistry::init('UserNote');
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:13,代码来源:PromotionAwardTask.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $date = new DateTime();
     $date->sub(new DateInterval('P3M'));
     $this->suspension_month = $date->format("Y-m-01 00:00:00");
     $termination_dt = new DateTime();
     $termination_dt->sub(new DateInterval('P6M'));
     $this->termination_month = $termination_dt->format("Y-m-01 00:00:00");
     $suspension_dt = new DateTime();
     $suspension_dt->sub(new DateInterval('P1M'));
     $this->suspension_date = $suspension_dt->format("Y-m-t 23:59:59");
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:13,代码来源:CronPresenterMonthlyShell.php

示例13: __construct

 /**
  * Initialize
  *
  * @param type $stdout
  * @param type $stderr
  * @param type $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->_CroogoPlugin = new CroogoPlugin();
     $this->_CroogoTheme = new CroogoTheme();
     $CakeRequest = new CakeRequest();
     $CakeResponse = new CakeResponse();
     $this->_Controller = new AppController($CakeRequest, $CakeResponse);
     $this->_Controller->constructClasses();
     $this->_Controller->startupProcess();
     $this->_CroogoPlugin->setController($this->_Controller);
     $this->initialize();
 }
开发者ID:dlpc,项目名称:CakeWX,代码行数:20,代码来源:ExtShell.php

示例14: array

 /**
  *  Constructs this Shell instance.
  *
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->pluginDir = APP . 'Plugin' . DS;
     $this->templateDir = array();
     $this->templateDir[] = dirname(__FILE__);
     $this->templateDir[] = '..';
     $this->templateDir[] = '..';
     $this->templateDir[] = '..';
     $this->templateDir[] = 'Lib';
     $this->templateDir[] = 'Templates';
     $this->templateDir = implode(DS, $this->templateDir);
 }
开发者ID:johnulist,项目名称:cakephp-admin,代码行数:17,代码来源:AdminControllerTask.php

示例15: __construct

    /**
     * Constructs this GithubCloseShell instance.
     *
     * @param ConsoleOutput $stdout A ConsoleOutput object for stdout.
     * @param ConsoleOutput $stderr A ConsoleOutput object for stderr.
     * @param ConsoleInput $stdin A ConsoleInput object for stdin.
     */
    public function __construct($stdout = null, $stderr = null, $stdin = null)
    {
        $this->close_reply = trim('
This repository is just a mirror, pull requests are not monitored or accepted
here. Please look at the official page for instructions on how to contribute
changes back to this plugin. If none exist, we suggest posting a new topic to
address this on the support forum on WordPress.org.

Official Page: %1$s
Support Forum: %2$s
		');
        parent::__construct($stdout, $stderr, $stdin);
    }
开发者ID:hasannawaz,项目名称:pluginmirror,代码行数:20,代码来源:GithubCloseShell.php


注:本文中的AppShell::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。