Ejemplo n.º 1
0
 /**
  * Add important page
  *
  * @param	int		page id
  */
 function addImportantPage($a_page_id, $a_nr = 0, $a_indent = 0)
 {
     global $ilDB;
     if (!$this->isImportantPage($a_page_id)) {
         if ($a_nr == 0) {
             $a_nr = ilObjWiki::_lookupMaxOrdNrImportantPages($this->getId()) + 10;
         }
         $ilDB->manipulate("INSERT INTO il_wiki_imp_pages " . "(wiki_id, ord, indent, page_id) VALUES (" . $ilDB->quote($this->getId(), "integer") . "," . $ilDB->quote($a_nr, "integer") . "," . $ilDB->quote($a_indent, "integer") . "," . $ilDB->quote($a_page_id, "integer") . ")");
     }
 }