CONTROL_PM::__construct PHP Method

__construct() public method

public __construct ( )
    function __construct()
    {
        //构造函数
        $this->obj_base = $GLOBALS["obj_base"];
        //获取界面类型
        $this->config = $this->obj_base->config;
        $this->adminLogged = $GLOBALS["adminLogged"];
        //获取已登录信息
        $this->mdl_pm = new MODEL_PM();
        //设置管理员模型
        $this->mdl_user = new MODEL_USER();
        //设置管理员模型
        $_arr_cfg["admin"] = true;
        $this->obj_tpl = new CLASS_TPL(BG_PATH_TPLSYS . "admin/" . BG_DEFAULT_UI, $_arr_cfg);
        //初始化视图对象
        $this->tplData = array("adminLogged" => $this->adminLogged);
        if ($this->adminLogged["admin_type"] == "super") {
            $this->is_super = true;
        }
    }