Esempio n. 1
0
 private function __construct()
 {
     $this->coverDao = UHEADER_BOL_CoverDao::getInstance();
     $this->templateDao = UHEADER_BOL_TemplateDao::getInstance();
     $this->templateRoleDao = UHEADER_BOL_TemplateRoleDao::getInstance();
     $this->plugin = OW::getPluginManager()->getPlugin('uheader');
 }
Esempio n. 2
0
 public function findListForAllUsers()
 {
     $templateRoleDao = UHEADER_BOL_TemplateRoleDao::getInstance();
     $query = "SELECT DISTINCT t.* FROM " . $this->getTableName() . " t \n            LEFT JOIN " . $templateRoleDao->getTableName() . " tr ON t.id = tr.templateId\n                WHERE tr.id IS NULL ORDER BY t.timeStamp DESC";
     return $this->dbo->queryForObjectList($query, $this->getDtoClassName());
 }