예제 #1
0
파일: service.php 프로젝트: vazahat/dudex
 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');
 }
예제 #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());
 }