public function remove(DB $db) { parent::remove($db); // Do all the things do cleanly remove the module (e.x. delete something in db, clean up cached files etc) $stmntRemoveSettings = $db->prepare("DELETE FROM element_text WHERE element_instance_IDFK = ? AND page_IDFK = ?"); $db->delete($stmntRemoveSettings, array($this->ID, $this->pageID)); }
public function remove(DB $db) { foreach ($this->elements as $el) { try { $el->remove($db); } catch (\Exception $e) { throw new CMSException('Could not remove sub element ' . $el->getIdentifier() . ': ' . $e->getMessage()); } } parent::remove($db); }
public function __construct($ID, $pageID) { parent::__construct($ID, $pageID, 'element_nav'); $this->activeRoutes = array(); $this->modes = array(1 => 'Navigation list', 2 => 'Breadcrumb'); }
public function __construct($ID, $pageID) { parent::__construct($ID, $pageID, 'element_iframe'); }