예제 #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'));
 }
예제 #2
0
파일: CRedis.php 프로젝트: erdincay/WIIBOX
 /**
  * 初始化
  */
 public function init($_prefix = '', $_suffix = '')
 {
     self::getConnection();
     parent::init();
     // 设置前缀
     $this->setPrefix($_prefix);
     // 设置后缀
     $this->setSuffix($_suffix);
 }
예제 #3
0
 /**
  * 初始化
  */
 public function init($_prefix = '', $_suffix = '')
 {
     $this->_store_url = WEB_ROOT . "/cache/";
     parent::init();
     // 设置前缀
     $this->setPrefix($_prefix);
     // 设置后缀
     $this->setSuffix($_suffix);
 }
예제 #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'));
 }
예제 #5
0
파일: CModel.php 프로젝트: erdincay/WIIBOX
 public function init()
 {
     parent::init();
 }
예제 #6
0
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->processRules();
 }