public function _initialize() { parent::_initialize(); $this->send_log = M("email_log"); $this->file_manager = M("file_manager"); $this->email_config = C("email_api"); class_exists('PHPMailer') or import('ORG.Net.PHPMailer'); }
protected function _initialize() { parent::_initialize(); $data_cache_path = C('DATA_CACHE_PATH'); $this->_cache_path = $data_cache_path . 'roles/'; if (!is_dir($this->_cache_path)) { mk_dir($this->_cache_path, 0755); } }
protected static function _initialize() { $options = \App::options('logger.' . (\App::option('test_env') ? 'develop' : 'prod')); static::$_connectionName = $options['connection']; static::$_table = $options['table']; $class = parent::_initialize(); static::$_connectionName = 'default'; static::$_table = null; return $class; }
public function _initialize() { parent::_initialize(); $this->send_log = M("sms_log"); if (session_name() != "ADMIN_PHPSESSID") { $this->user_id = $_SESSION['user_id']; } else { $this->user_id = 0; } $this->sms_config = C("sms_api"); $this->sms_config["sms_url"] = rtrim($this->sms_config["sms_url"], "/") . "/"; class_exists('Http') or import('ORG.Net.Http'); $this->http = new Http(); }
protected function _initialize() { parent::_initialize(); $this->timeOut = 3600 * 12; }
function _initialize() { parent::_initialize(); $this->memberID = Cookie::get('memberID') ? Cookie::get('memberID') : 0; //会员帐号 }
/** * _initialize * 初始化函数 * @return void */ public function _initialize() { parent::_initialize(); }
public function _initialize() { parent::_initialize(); $this->table_admin = M('Admin'); }
function _initialize() { parent::_initialize(); $this->memberID = Session::get('memberID') ? Session::get('memberID') : 0; //会员帐号 }
public function _initialize() { $this->path = CANVAS_PATH; parent::_initialize(); }
public function _initialize() { $this->tmp_line_id = $_POST["line_id"] ? intval($_POST["line_id"]) : 0; parent::_initialize(); }
protected function _initialize() { parent::_initialize(); }
/** * _initialize * 初始化函数 * @return void */ public function _initialize() { //初始化只搜索状态status为1的。 $this->status = 1; parent::_initialize(); }