Example #1
0
 /**
  * Initializes the application component.
  * This method is required by IApplicationComponent and is invoked by application.
  */
 public function init()
 {
     parent::init();
     if ($this->autoStart) {
         $this->open();
     }
     register_shutdown_function(array($this, 'close'));
 }
Example #2
0
 /**
  * 初始化
  */
 public function init($_prefix = '', $_suffix = '')
 {
     self::getConnection();
     parent::init();
     // 设置前缀
     $this->setPrefix($_prefix);
     // 设置后缀
     $this->setSuffix($_suffix);
 }
Example #3
0
 /**
  * 初始化
  */
 public function init($_prefix = '', $_suffix = '')
 {
     $this->_store_url = WEB_ROOT . "/cache/";
     parent::init();
     // 设置前缀
     $this->setPrefix($_prefix);
     // 设置后缀
     $this->setSuffix($_suffix);
 }
Example #4
0
 public function init()
 {
     parent::init();
     $this->_aryAllowedExtension = array(0 => CUtil::i18n('framework,cfileUpload_uploadError0'), 1 => CUtil::i18n('framework,cfileUpload_uploadError1'), 2 => CUtil::i18n('framework,cfileUpload_uploadError2'), 3 => CUtil::i18n('framework,cfileUpload_uploadError3'), 4 => CUtil::i18n('framework,cfileUpload_uploadError4'), 6 => CUtil::i18n('framework,cfileUpload_uploadError5'));
 }
Example #5
0
 public function init()
 {
     parent::init();
 }
Example #6
0
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->processRules();
 }