Пример #1
0
 public function addModule()
 {
     $_sql = "INSERT INTO \n\t\t\t\t\t\t\t\t\t\ttg_module (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodule_tpl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodule_det,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodule_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodule_same,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tparam1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tparam2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tparam3\n\t\t\t\t\t\t\t\t\t\t\t\t\t) \n\t\t\t\t\t\t\t\t\t\tVALUES (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[module_tpl]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[module_det]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[module_name]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[module_same]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[param1]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[param2]}',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'{$this->userInfo[param3]}'\n\t\t\t\t\t\t\t\t\t\t\t\t)";
     return parent::_insert_id($_sql);
 }