Пример #1
0
 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 = '*****@*****.**';
     /***********     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'));
 }
 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
0
 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
0
 public function __construct()
 {
     parent::__construct();
     App::import("Model", "Presenter");
     $this->Presenter = new Presenter();
     //$this->Presenter->setDataSource('persistent');
 }
Пример #5
0
 /**
  * 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();
 }
 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
0
 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
0
 /**
  *  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
0
 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');
 }
 /**
  * __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
0
 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');
 }
 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
0
 /**
  * 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();
 }
 /**
  *  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
0
    /**
     * 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);
    }
Пример #16
0
 public function __construct()
 {
     $this->User = new User();
     $this->Presenter = new Presenter();
     $this->Item = new Item();
     $this->Order = new Order();
     $this->OrderCustomer = new OrderCustomer();
     $this->OrderItem = new OrderItem();
     $this->RoyaltiesEarned = new RoyaltiesEarned();
     $this->db = ConnectionManager::getDataSource('default');
     $this->CventAPI = new CventAPI();
     $this->CventAPI->Login('YLLCUTUS01', 'YLLCUTUS01Api', '47R5gb5QmUu');
     parent::__construct();
 }
Пример #17
0
 public function __construct()
 {
     $hostname_whitelist = ['vagrant-ubuntu-trusty-64'];
     //please add your test box's host to the array
     if (!in_array(trim(gethostname()), $hostname_whitelist)) {
         #die("\n\nDO NOT EVER RUN THIS IN PRODUCTION - YOU'VE BEEN WARNED\n\n");
     }
     parent::__construct();
     $this->Order = ClassRegistry::init('Order');
     $this->OrderShipmentMethod = ClassRegistry::init('OrderShipmentMethod');
     $this->order_type = Order::TYPE_PRODUCT;
     $this->Order->clear();
     //added to fix session handling problem
     if (session_id() === "") {
         session_start();
     }
 }
Пример #18
0
 /**
  * Disables cache and constructs this Shell instance.
  *
  * @param ConsoleOutput $stdout
  * @param ConsoleOutput $stderr
  * @param ConsoleInput $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     Configure::write('Cache.disable', true);
     parent::__construct($stdout, $stderr, $stdin);
 }
Пример #19
0
 /**
  * PrimarySqsShell constructor.
  *
  * @param null $stdout
  * @param null $stderr
  * @param null $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     /**
      * Initialize SQS Client
      */
     $this->sqs = new Sqs($this->primarySqsUrl());
 }
Пример #20
0
 public function __construct()
 {
     parent::__construct();
     $this->app = (require __DIR__ . '/../../Vendor/robmorgan/phinx/app/phinx.php');
 }
 /**
  * NetSuiteRestletShell constructor.
  */
 public function __construct()
 {
     $this->parser = $this->getOptionParser();
     parent::__construct();
 }
Пример #22
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #23
0
 public function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->InstallerLib = new InstallerLib();
 }
Пример #24
0
 public function __construct()
 {
     parent::__construct();
     $this->Order = ClassRegistry::init('Order');
     $this->repDB = $this->Order->getDataSource('replicated');
 }
 public function __construct()
 {
     parent::__construct();
     $this->lastMonth = date("Y-m", strtotime("last month"));
 }