mdl_create_table() публичный Метод

创建表 mdl_create function.
public mdl_create_table ( ) : void
Результат void
Пример #1
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appTable = $_mdl_app->mdl_create_table();
     if ($_arr_appTable["alert"] != "y050105") {
         $this->obj_api->halt_re($_arr_appTable);
     }
 }
Пример #2
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appRow = $_mdl_app->mdl_create_table();
     if ($_arr_appRow["alert"] != "y190105") {
         $this->obj_ajax->halt_alert($_arr_appRow["alert"]);
     }
 }
Пример #3
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appTable = $_mdl_app->mdl_create_table();
     $this->tplData["db_alert"]["app_table"] = array("alert" => $_arr_appTable["alert"], "status" => substr($_arr_appTable["alert"], 0, 1));
 }
Пример #4
0
 private function table_app()
 {
     include_once BG_PATH_MODEL . "app.class.php";
     //载入管理帐号模型
     $_mdl_app = new MODEL_APP();
     $_arr_appRow = $_mdl_app->mdl_create_table();
     if ($_arr_appRow["alert"] != "y190105") {
         $this->obj_ajax->halt_alert($_arr_appRow["alert"]);
     }
     $_arr_col = $_mdl_app->mdl_column();
     $_arr_alert = array();
     if (in_array("app_id", $_arr_col)) {
         $_arr_alert["app_id"] = array("CHANGE", "smallint NOT NULL AUTO_INCREMENT COMMENT 'ID'", "app_id");
     }
     if (in_array("app_key", $_arr_col)) {
         $_arr_alert["app_key"] = array("CHANGE", "char(64) NOT NULL COMMENT '校验码'", "app_key");
     }
     if (in_array("app_token", $_arr_col)) {
         $_arr_alert["app_token"] = array("CHANGE", "char(64) NOT NULL COMMENT '访问口令'", "app_token");
     }
     if (in_array("app_status", $_arr_col)) {
         $_arr_alert["app_status"] = array("CHANGE", "enum('enable','disable') NOT NULL COMMENT '状态'", "app_status");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "app", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x190106");
         }
     }
 }