Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public function __construct($ID, $pageID)
 {
     parent::__construct($ID, $pageID, 'element_nav');
     $this->activeRoutes = array();
     $this->modes = array(1 => 'Navigation list', 2 => 'Breadcrumb');
 }
Esempio n. 4
0
 public function __construct($ID, $pageID)
 {
     parent::__construct($ID, $pageID, 'element_iframe');
 }