AJAX_USER::validate_import PHP Метод

validate_import() приватный Метод

private validate_import ( )
    private function validate_import()
    {
        if (!fn_token("chk")) {
            //令牌
            return array("alert" => "x030206");
        }
        $this->csvFiles = $_FILES["csv_files"];
        $_str_alert = $this->upload_init($this->csvFiles["error"]);
        if ($_str_alert != "ok") {
            return array("alert" => $_str_alert);
        }
        $this->userImport["file_ext"] = pathinfo($this->csvFiles["name"], PATHINFO_EXTENSION);
        //取得扩展名
        $this->userImport["file_ext"] = strtolower($this->userImport["file_ext"]);
        if ($this->userImport["file_ext"] != "csv") {
            return array("alert" => "x010219");
        }
        $this->userImport["file_temp"] = $this->csvFiles["tmp_name"];
        $this->userImport["alert"] = "ok";
        return $this->userImport;
    }