public function __construct(DB $db) { parent::__construct($db); }
public function __construct(DB $db) { parent::__construct($db); $this->prepareStmnts(); }
public function __construct(DB $db) { parent::__construct($db); $this->logger = FrameworkLoggerFactory::getLogger($this); $this->stmntMod = $this->db->prepare("\n\t\t\tSELECT mi.ID, mi.page_IDFK, ma.class, ma.name, ma.ID modID, parent_mod_IDFK, IF(ih.element_instance_IDFK IS NULL, 0, 1) hidden\n\t\t\tFROM cms_element_instance mi\n\t\t\tLEFT JOIN cms_element_available ma ON ma.ID = mi.mod_IDFK\n\t\t\tLEFT JOIN cms_element_instance_hidden ih ON ih.element_instance_IDFK = mi.ID AND ih.page_IDFK = ?\n\t\t\tWHERE mi.ID = ?\n\t\t"); }