MODEL_LOG::mdl_submit PHP Method

mdl_submit() public method

提交 mdl_submit function.
public mdl_submit ( $arr_logData, integer $num_operatorId, string $str_logStatus = "wait", string $str_logLevel = "normal" ) : void
$num_operatorId integer (default: 0)
$str_logStatus string (default: "wait")
$str_logLevel string (default: "normal")
return void
    function mdl_submit($arr_logData, $num_operatorId = 0, $str_logStatus = "wait", $str_logLevel = "normal")
    {
        $_arr_logData = array("log_operator_id" => $num_operatorId, "log_targets" => $arr_logData["log_targets"], "log_target_type" => $arr_logData["log_target_type"], "log_title" => $arr_logData["log_title"], "log_result" => $arr_logData["log_result"], "log_type" => $arr_logData["log_type"], "log_status" => $str_logStatus, "log_level" => $str_logLevel, "log_time" => time());
        $_num_logId = $this->obj_db->insert(BG_DB_TABLE . "log", $_arr_logData);
        //更新数据
        if ($_num_logId > 0) {
            $_str_alert = "y060101";
            //更新成功
        } else {
            return array("alert" => "x060101");
        }
        return array("log_id" => $_num_logId, "alert" => $_str_alert);
    }