コード例 #1
0
ファイル: template_dao.php プロジェクト: vazahat/dudex
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return UHEADER_BOL_TemplateDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: service.php プロジェクト: vazahat/dudex
 public function deleteTemplateById($templateId)
 {
     $template = $this->findTemplateById($templateId);
     $this->templateRoleDao->deleteByTemplateId($templateId);
     $this->templateDao->deleteById($templateId);
     $this->deleteCoversByTemplateId($templateId);
     $tplPath = $this->getTemplatePath($template);
     OW::getStorage()->removeFile($tplPath);
 }