public function deleteObjectFromDatabase()
 {
     $this->setParam("deleteMediamanagerRepo", true);
     return parent::deleteObjectFromDatabase();
 }
 /**
  * Deletes the element from the system-tables, also from the foreign-element-tables.
  * This takes care of reordering the internal sort-ids.
  *
  * @return bool
  */
 public function deleteObjectFromDatabase()
 {
     //fix the internal sorting
     $arrElements = $this->getSortedElementsAtPlaceholder();
     $arrIds = array();
     $bitHit = false;
     foreach ($arrElements as $arrOneSibling) {
         if ($bitHit) {
             $arrIds[] = $arrOneSibling["system_id"];
         }
         if ($arrOneSibling["system_id"] == $this->getSystemid()) {
             $bitHit = true;
         }
     }
     if (count($arrIds) > 0) {
         $strQuery = "UPDATE " . _dbprefix_ . "system SET system_sort = system_sort-1 where system_id IN (" . implode(",", array_map(function ($strVal) {
             return "?";
         }, $arrIds)) . ")";
         $this->objDB->_pQuery($strQuery, $arrIds);
     }
     //Load the Element-Data
     $objElement = $this->getConcreteAdminInstance();
     if ($objElement != null) {
         //Fetch the table
         $strElementTable = $objElement->getTable();
         //Delete the entry in the Element-Table
         if ($strElementTable != "") {
             $strQuery = "DELETE FROM " . $strElementTable . " WHERE content_id= ?";
             if (!$this->objDB->_pQuery($strQuery, array($this->getSystemid()))) {
                 return false;
             }
         }
     }
     //Delete from page_element table
     parent::deleteObjectFromDatabase();
     //Loading the data of the corresponding site
     $objPage = new class_module_pages_page($this->getPrevId());
     class_cache::flushCache("class_element_portal", $objPage->getStrName());
     return true;
 }
 /**
  * Deletes the tag with the given systemid from the system
  *
  * @return bool
  */
 public function deleteObjectFromDatabase()
 {
     //delete all files from the filesystem
     $objFilesystem = new class_filesystem();
     $objFilesystem->folderDeleteRecursive(_templatepath_ . "/" . $this->getStrName());
     return parent::deleteObjectFromDatabase();
 }
 public function deleteObjectFromDatabase()
 {
     //delete the current file
     if ($this->getParam("deleteMediamanagerRepo") != true) {
         $objFilesystem = new class_filesystem();
         if ($this->getIntType() == self::$INT_TYPE_FILE) {
             $objFilesystem->fileDelete($this->getStrFilename());
         } else {
             $objFilesystem->folderDelete($this->getStrFilename());
         }
     }
     return parent::deleteObjectFromDatabase();
 }
 /**
  * @return bool
  */
 public function deleteObjectFromDatabase()
 {
     //delete elements in the database
     $arrElements = $this->objDB->getPArray("SELECT page_element_id FROM " . _dbprefix_ . "page_element WHERE page_element_ph_element = ?", array($this->getStrName()));
     foreach ($arrElements as $arrOneRow) {
         $objElement = new class_module_pages_pageelement($arrOneRow["page_element_id"]);
         $objElement->deleteObjectFromDatabase();
     }
     parent::deleteObjectFromDatabase();
 }
 public function deleteObjectFromDatabase()
 {
     self::flushCache();
     return parent::deleteObjectFromDatabase();
     // TODO: Change the autogenerated stub
 }