コード例 #1
0
 function testBulkSettingChange()
 {
     $oConf = new OA_Admin_Settings(true);
     $oConf->bulkSettingChange('foo', array('one' => 'bar', 'two' => 'baz'));
     $expected = array('foo' => array('one' => 'bar', 'two' => 'baz'));
     $this->assertEqual($expected, $oConf->aConf);
 }
コード例 #2
0
ファイル: ConfigMigration.php プロジェクト: villos/tree_admin
 /**
  * Following method merges geotargeting plugins config
  * into global config file. By doing that we are improving
  * delivery performance for scripts using geotargeting data
  * by more than 15%.
  *
  * @return boolean  True on success else false
  */
 function mergeConfigWith($section, $mergeWithConf)
 {
     $config = new OA_Admin_Settings();
     $config->bulkSettingChange($section, $mergeWithConf);
     return $config->writeConfigChange();
 }