AJAX_ADMIN::__construct PHP Method

__construct() public method

public __construct ( )
    function __construct()
    {
        //构造函数
        $this->adminLogged = $GLOBALS["adminLogged"];
        //已登录商家信息
        $this->obj_ajax = new CLASS_AJAX();
        //初始化 AJAX 基对象
        $this->obj_ajax->chk_install();
        $this->log = $this->obj_ajax->log;
        //初始化 AJAX 基对象
        $this->mdl_admin = new MODEL_ADMIN();
        //设置管理组模型
        $this->mdl_log = new MODEL_LOG();
        //设置管理员模型
        if ($this->adminLogged["alert"] != "y020102") {
            //未登录,抛出错误信息
            $this->obj_ajax->halt_alert($this->adminLogged["alert"]);
        }
        if ($this->adminLogged["admin_type"] == "super") {
            $this->is_super = true;
        }
    }