Ejemplo n.º 1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return BOL_ComponentSettingDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Ejemplo n.º 2
0
 /**
  *
  * @param int $placeId
  * @return BOL_Scheme
  */
 public function findSchemeByPlaceId($placeId, $entityId)
 {
     $placeSchemeDto = $this->placeSchemeDao->findPlaceScheme($placeId, $entityId);
     if (!$placeSchemeDto) {
         return null;
     }
     return $this->schemeDao->findById($placeSchemeDto->schemeId);
 }