MODEL_LOG::mdl_del PHP Method

mdl_del() public method

删除 mdl_del function.
public mdl_del ( ) : void
return void
    function mdl_del()
    {
        $_str_logId = implode(",", $this->logIds["log_ids"]);
        $_num_mysql = $this->obj_db->delete(BG_DB_TABLE . "log", "log_id IN (" . $_str_logId . ")");
        //删除数据
        //如车影响行数小于0则返回错误
        if ($_num_mysql > 0) {
            $_str_alert = "y060104";
            //成功
        } else {
            $_str_alert = "x060104";
            //失败
        }
        return array("alert" => $_str_alert);
    }