/** * table_cate_belong function. * * @access private * @return void */ private function table_cate_belong() { include_once BG_PATH_MODEL . "cateBelong.class.php"; //载入管理帐号模型 $_mdl_cateBelong = new MODEL_CATE_BELONG(); $_arr_cateBelongTable = $_mdl_cateBelong->mdl_create_table(); $this->tplData["db_alert"]["cate_belong_table"] = array("alert" => $_arr_cateBelongTable["alert"], "status" => substr($_arr_cateBelongTable["alert"], 0, 1)); }
/** * table_cate_belong function. * * @access private * @return void */ private function table_cate_belong() { include_once BG_PATH_MODEL . "cateBelong.class.php"; //载入管理帐号模型 $_mdl_cateBelong = new MODEL_CATE_BELONG(); $_arr_belongRow = $_mdl_cateBelong->mdl_create_table(); if ($_arr_belongRow["alert"] != "y150105") { $this->obj_ajax->halt_alert($_arr_belongRow["alert"]); } }
/** * table_cate_belong function. * * @access private * @return void */ private function table_cate_belong() { include_once BG_PATH_MODEL . "cateBelong.class.php"; //载入管理帐号模型 $_mdl_cateBelong = new MODEL_CATE_BELONG(); $_arr_col = $_mdl_cateBelong->mdl_column(); $_arr_alert = array(); if (in_array("belong_cate_id", $_arr_col)) { $_arr_alert["belong_cate_id"] = array("CHANGE", "smallint NOT NULL COMMENT '栏目 ID'", "belong_cate_id"); } if ($_arr_alert) { $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "cate_belong", $_arr_alert); if (!$_reselt) { $this->obj_ajax->halt_alert("x150106"); } } /*$_arr_cateBelongRow = $_mdl_cateBelong->mdl_create_index(); if ($_arr_cateBelongRow["alert"] != "y150109") { $this->obj_ajax->halt_alert($_arr_cateBelongRow["alert"]); }*/ }