Beispiel #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return BOL_ConfigService
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
 /**
  * Updates config value.
  * 
  * @param string $key
  * @param string $name
  * @param mixed $value
  */
 public function saveConfig($key, $name, $value)
 {
     $this->configService->saveConfig($key, $name, $value);
     $this->generateCache();
 }