MODEL_BELONG::mdl_alert_table PHP Method

mdl_alert_table() public method

修改表 mdl_alert_table function.
public mdl_alert_table ( ) : void
return void
    function mdl_alert_table()
    {
        $_arr_col = $this->mdl_column();
        $_arr_alert = array();
        if (in_array("belong_app_id", $_arr_col)) {
            $_arr_alert["belong_app_id"] = array("CHANGE", "smallint NOT NULL COMMENT '应用 ID'", "belong_app_id");
        }
        $_str_alert = "y070111";
        if ($_arr_alert) {
            $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "belong", $_arr_alert);
            if ($_reselt) {
                $_str_alert = "y070106";
            }
        }
        return array("alert" => $_str_alert);
    }

Usage Example

Ejemplo n.º 1
0
 private function table_belong()
 {
     include_once BG_PATH_MODEL . "belong.class.php";
     //载入管理帐号模型
     $_mdl_belong = new MODEL_BELONG();
     $_arr_belongCreate = $_mdl_belong->mdl_create_table();
     $_arr_belongAlert = $_mdl_belong->mdl_alert_table();
     $this->tplData["db_alert"]["belong_table_create"] = array("alert" => $_arr_belongCreate["alert"], "status" => substr($_arr_belongCreate["alert"], 0, 1));
     $this->tplData["db_alert"]["belong_table_alert"] = array("alert" => $_arr_belongAlert["alert"], "status" => substr($_arr_belongAlert["alert"], 0, 1));
 }