Exemple #1
0
 public function __construct($name, $runner)
 {
     parent::__construct($name, $runner);
     if ($this->_log == null) {
         $this->_log = new CronFileLogRoute('command_update');
     }
 }
 /**
  * GenerateWorklistsCommand constructor.
  *
  * @param string                $name
  * @param CConsoleCommandRunner $runner
  * @param WorklistManager       $manager
  */
 public function __construct($name, $runner, $manager = null)
 {
     if (is_null($manager)) {
         $manager = new WorklistManager();
     }
     $this->manager = $manager;
     parent::__construct($name, $runner);
 }
Exemple #3
0
 public function __construct($id, $module = null)
 {
     parent::__construct($id, $module);
     $this->product_model = new Product();
     $this->productType_model = new ProductType();
     $this->productPublish_model = new ProductPublish();
     $this->userProductBuy_model = new UserProductBuy();
     $this->buyLogs_model = new BuyLogs();
     $this->tradingRecord_model = new TradingRecord();
     $this->userInfo_model = new Userinfo();
 }
 public function __construct()
 {
     $this->path = Yii::app()->params['hscic']['data']['path'];
     $this->tempPath = Yii::app()->params['hscic']['data']['temp_path'];
     if (!file_exists($this->path)) {
         mkdir($this->path, 0777, true);
     }
     if (!file_exists($this->tempPath)) {
         mkdir($this->tempPath, 0777, true);
     }
     $this->files = $this->mapFileConfig(static::$file_config);
     parent::__construct(null, null);
 }
 public function __construct($name, $runner)
 {
     //non conflicting alias
     $alias = md5(__DIR__);
     Yii::setPathOfAlias($alias, __DIR__);
     //configuring
     $configPath = Yii::getPathOfAlias($alias . '.configs');
     $config = new CConfiguration(array('alias' => $alias));
     $config->loadFromFile($configPath . '/stdConfig.php');
     //base config
     if ($this->config) {
         $config->loadFromFile($configPath . '/' . $this->config . '.php');
     }
     foreach ($config as $key => $val) {
         $this->{$key} = $val;
     }
     //do import
     Yii::import($alias . '.*', true);
     Yii::import($alias . '.iterators.*', true);
     //set translaitor
     Yii::app()->setComponent('docBlockMessage', Yii::createComponent($this->messageSource));
     parent::__construct($name, $runner);
 }
 public function __construct($name, $runner)
 {
     parent::__construct($name, $runner);
 }
Exemple #7
0
 public function __construct($name, $runner)
 {
     parent::__construct($name, $runner);
     $this->logCommand();
 }
Exemple #8
0
 public function __construct($name, $runner)
 {
     parent::__construct($name, $runner);
     $this->inputPath = realpath(dirname(__FILE__) . '/..') . '/data';
     $this->dictFile = realpath(dirname(__FILE__) . '/../../../../etc') . '/py.xdb';
 }