コード例 #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return BOL_ComponentPlaceCacheDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: component_service.php プロジェクト: vazahat/dudex
 public function deleteWidgetPlace($uniqName)
 {
     $componentPlaceDao = BOL_ComponentPlaceDao::getInstance();
     $dto = $componentPlaceDao->findByUniqName($uniqName);
     if ($dto === null) {
         return;
     }
     $componentPlaceDao->deleteByUniqName($dto->uniqName);
     BOL_ComponentEntityPlaceDao::getInstance()->deleteAllByUniqName($dto->uniqName);
     BOL_ComponentSettingDao::getInstance()->deleteList($dto->uniqName);
     BOL_ComponentEntitySettingDao::getInstance()->deleteAllByUniqName($dto->uniqName);
     BOL_ComponentPositionDao::getInstance()->deleteByUniqName($dto->uniqName);
     BOL_ComponentEntityPositionDao::getInstance()->deleteAllByUniqName($dto->uniqName);
     $this->componentPlaceCacheDao->deleteAllCache($dto->placeId);
     $this->componentDao->delete($dto);
 }