コード例 #1
0
ファイル: config_service.php プロジェクト: Taissas/oxwall
 /**
  * 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;
 }
コード例 #2
0
ファイル: config.php プロジェクト: vazahat/dudex
 /**
  * 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();
 }