예제 #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;
 }
예제 #2
0
 protected function __construct()
 {
     parent::__construct();
     $this->componentPositionDao = BOL_ComponentEntityPositionDao::getInstance();
     $this->componentSettingDao = BOL_ComponentEntitySettingDao::getInstance();
     $this->placeSchemeDao = BOL_PlaceEntitySchemeDao::getInstance();
     $this->componentPlaceDao = BOL_ComponentEntityPlaceDao::getInstance();
 }