/** * 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; }
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(); }