Components_Configs::unshiftConfigurationType PHP Method

unshiftConfigurationType() public method

Store a configuration type at the start of the configuration stack. Any options provided by the new configuration can/will be overridden by configurations already present.
public unshiftConfigurationType ( Components_Config $type ) : null
$type Components_Config The configuration type.
return null
    public function unshiftConfigurationType(Components_Config $type)
    {
        array_unshift($this->_configs, $type);
    }

Usage Example

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