API_USER::app_check PHP Method

app_check() private method

app_check function.
private app_check ( string $str_method = "get" ) : void
$str_method string (default: "get")
return void
    private function app_check($str_method = "get")
    {
        $this->appRequest = $this->obj_api->app_request($str_method, true);
        if ($this->appRequest["alert"] != "ok") {
            $this->obj_api->halt_re($this->appRequest);
        }
        $_arr_logTarget[] = array("app_id" => $this->appRequest["app_id"]);
        $this->appRow = $this->mdl_app->mdl_read($this->appRequest["app_id"]);
        if ($this->appRow["alert"] != "y050102") {
            $_arr_logType = array("app", "read");
            $this->log_do($_arr_logTarget, "app", $this->appRow, $_arr_logType);
            $this->obj_api->halt_re($this->appRow);
        }
        $this->appAllow = $this->appRow["app_allow"];
        $_arr_appChk = $this->obj_api->app_chk($this->appRequest, $this->appRow);
        if ($_arr_appChk["alert"] != "ok") {
            $_arr_logType = array("app", "check");
            $this->log_do($_arr_logTarget, "app", $_arr_appChk, $_arr_logType);
            $this->obj_api->halt_re($_arr_appChk);
        }
        $_arr_search = array("status" => "enable", "sync" => "on", "has_notify" => true);
        $this->appRows = $this->mdl_app->mdl_list(100, 0, $_arr_search);
    }