/**
  * delete media_pool page and al related data	
  *
  * @access	public
  */
 function delete()
 {
     global $ilDB;
     // delete internal links information to this page
     //		include_once("./Services/Link/classes/class.ilInternalLink.php");
     //		ilInternalLink::_deleteAllLinksToTarget("mep", $this->getId());
     // delete co page
     parent::delete();
     return true;
 }
 /**
  * delete portfolio page and all related data
  */
 function delete()
 {
     global $ilDB;
     $id = $this->getId();
     if ($id) {
         // delete internal links information to this page
         include_once "./Services/Link/classes/class.ilInternalLink.php";
         ilInternalLink::_deleteAllLinksToTarget("user", $this->getId());
         // delete record of table usr_portfolio_page
         $query = "DELETE FROM usr_portfolio_page" . " WHERE id = " . $ilDB->quote($this->getId(), "integer");
         $ilDB->manipulate($query);
         // delete co page
         parent::delete();
     }
 }
 /**
  * Delete blog posting and all related data
  *
  * @return bool
  */
 function delete()
 {
     global $ilDB;
     $query = "DELETE FROM il_blog_posting" . " WHERE id = " . $ilDB->quote($this->getId(), "integer");
     $ilDB->manipulate($query);
     parent::delete();
     return true;
 }
 public function deleteView()
 {
     global $ilCtrl, $lng;
     if ($this->table_id && ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id)) {
         global $ilDB;
         $id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id);
         $pageObject = new ilPageObject("dclf", $id);
         $pageObject->delete();
         $query = "DELETE FROM il_dcl_view WHERE table_id = " . $this->table_id . " AND type = " . $ilDB->quote(0, "integer") . " AND formtype = " . $ilDB->quote(0, "integer");
         $ilDB->manipulate($query);
     }
     ilUtil::sendSuccess($lng->txt("dcl_empty_view_success"), true);
     $ilCtrl->redirectByClass("ilDataCollectionFieldListGUI", "listFields");
 }
 /**
  * delete wiki page and al related data	
  *
  * @access	public
  */
 function delete()
 {
     global $ilDB;
     // delete internal links information to this page
     include_once "./Services/COPage/classes/class.ilInternalLink.php";
     ilInternalLink::_deleteAllLinksToTarget("user", $this->getId());
     // delete record of table usr_ext_profile_page
     $query = "DELETE FROM usr_ext_profile_page" . " WHERE id = " . $ilDB->quote($this->getId(), "integer");
     $ilDB->manipulate($query);
     // delete co page
     parent::delete();
     return true;
 }
 /**
  * delete wiki page and al related data	
  *
  * @access	public
  */
 function delete()
 {
     global $ilDB;
     // get other pages that link to this page
     $linking_pages = ilWikiPage::getLinksToPage($this->getWikiId(), $this->getId());
     // delete internal links information to this page
     include_once "./Services/COPage/classes/class.ilInternalLink.php";
     ilInternalLink::_deleteAllLinksToTarget("wpg", $this->getId());
     include_once "./Services/Notification/classes/class.ilNotification.php";
     ilWikiUtil::sendNotification("delete", ilNotification::TYPE_WIKI_PAGE, $this->getWikiRefId(), $this->getId());
     // remove all notifications
     include_once "./Services/Notification/classes/class.ilNotification.php";
     ilNotification::removeForObject(ilNotification::TYPE_WIKI_PAGE, $this->getId());
     // delete record of table il_wiki_data
     $query = "DELETE FROM il_wiki_page" . " WHERE id = " . $ilDB->quote($this->getId(), "integer");
     $ilDB->manipulate($query);
     // delete co page
     parent::delete();
     // make links of other pages to this page a missing link
     foreach ($linking_pages as $lp) {
         $ilDB->manipulateF("DELETE FROM il_wiki_missing_page " . " WHERE wiki_id = %s AND source_id = %s AND target_name = %s ", array("integer", "integer", "text"), array($this->getWikiId(), $lp["id"], $this->getTitle()));
         $ilDB->manipulateF("INSERT INTO il_wiki_missing_page " . "(wiki_id, source_id, target_name) VALUES " . "(%s,%s,%s)", array("integer", "integer", "text"), array($this->getWikiId(), $lp["id"], $this->getTitle()));
     }
     return true;
 }
 /**
  * delete page and al related data	
  *
  * @access	public
  */
 function delete()
 {
     global $ilDB;
     // maybe we need an additional table here?
     // delete co page
     parent::delete();
     return true;
 }
 /**
  * Deletes the page object of a question with a given ID
  *
  * @param integer $question_id The database id of the question
  * @access protected
  */
 protected function deletePageOfQuestion($question_id)
 {
     include_once "./Services/COPage/classes/class.ilPageObject.php";
     $page = new ilPageObject("qpl", $question_id);
     $page->delete();
     return true;
 }