本文整理汇总了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'));
}
示例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");
}
示例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";
}
示例4: __construct
public function __construct()
{
parent::__construct();
App::import("Model", "Presenter");
$this->Presenter = new Presenter();
//$this->Presenter->setDataSource('persistent');
}
示例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();
}
示例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'));
}
示例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);
}
示例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);
}
示例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');
}
示例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);
}
示例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');
}
示例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");
}
示例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();
}
示例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);
}
示例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);
}