AJAX_PM::__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->mdl_pm = new MODEL_PM();
        $this->mdl_user = new MODEL_USER();
        if ($this->adminLogged["alert"] != "y020102") {
            //未登录,抛出错误信息
            $this->obj_ajax->halt_alert($this->adminLogged["alert"]);
        }
        if ($this->adminLogged["admin_type"] == "super") {
            $this->is_super = true;
        }
    }