Esempio n. 1
0
 public function AddPage(ModulePage_EntityPage $oPage)
 {
     $sql = "INSERT INTO ?_page\n\t\t\t(page_pid,\n\t\t\tpage_url,\n\t\t\tpage_url_full,\n\t\t\tpage_title,\n\t\t\tpage_text,\n\t\t\tpage_text_source,\n\t\t\tpage_date_add,\n\t\t\tpage_seo_keywords,\n\t\t\tpage_seo_description,\n\t\t\tpage_active,\n\t\t\tpage_main,\n\t\t\tpage_sort,\n\t\t\tpage_auto_br\n\t\t\t)\n\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?d,  ?d,  ?d,  ?d)\n\t\t";
     $nId = $this->oDb->query($sql, $oPage->getPid(), $oPage->getUrl(), $oPage->getUrlFull(), $oPage->getTitle(), $oPage->getText(), $oPage->getTextSource(), $oPage->getDateAdd(), $oPage->getSeoKeywords(), $oPage->getSeoDescription(), $oPage->getActive(), $oPage->getMain(), $oPage->getSort(), $oPage->getAutoBr());
     return $nId ? $nId : false;
 }