public function addCfg(array $cfgConfig, $append = false)
    {
        $count = count($this->_cfgs);
        $iteration = $append ? $count + 1000 : $count;
        $this->_cfgs[$iteration] = (new BlockCfg($cfgConfig))->toArray();
    }
public function addCfg(array $cfgConfig, $append = false)
    {
        $count = count($this->_cfgs);
        $iteration = $append ? $count + 1000 : $count;
        $this->_cfgs[$iteration] = (new BlockCfg($cfgConfig))->toArray();
    }
public function addCfg ( array $ cfgConfig , $ append = false ) { $ count = count ( $ this -> _cfgs ) ; $ iteration = $ append ? $ count + 1000 : $ count ; $ this -> _cfgs [ $ iteration ] = ( new BlockCfg ( $ cfgConfig ) ) -> toArray ( ) ; }
Add a cfg variable to the config.

@param array $cfgConfig
@param boolean Whether the variable should be append to the end instead of prepanding.
Add a cfg variable to the config .