Components_Configs::addConfigurationType PHP Method

addConfigurationType() public method

Add a configuration type to the configuration handler.
public addConfigurationType ( Components_Config $type ) : null
$type Components_Config The configuration type.
return null
    public function addConfigurationType(Components_Config $type)
    {
        $this->_configs[] = $type;
    }

Usage Example

コード例 #1
0
ファイル: ConfigsTest.php プロジェクト: horde/horde
 public function testNoNullOverride()
 {
     $configs = new Components_Configs();
     $configs->addConfigurationType($this->_getAConfig());
     $configs->addConfigurationType($this->_getNullConfig());
     $config = $configs->getOptions();
     $this->assertEquals('A', $config['a']);
 }
All Usage Examples Of Components_Configs::addConfigurationType