/** * 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')); }
/** * 初始化 */ public function init($_prefix = '', $_suffix = '') { self::getConnection(); parent::init(); // 设置前缀 $this->setPrefix($_prefix); // 设置后缀 $this->setSuffix($_suffix); }
/** * 初始化 */ public function init($_prefix = '', $_suffix = '') { $this->_store_url = WEB_ROOT . "/cache/"; parent::init(); // 设置前缀 $this->setPrefix($_prefix); // 设置后缀 $this->setSuffix($_suffix); }
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')); }
public function init() { parent::init(); }
/** * 初始化 */ public function init() { parent::init(); $this->processRules(); }