public function mergeSection($sectionSource, $sectionTarget)
    {
        if (!isset($this->content[$sectionTarget])) {
            return $this->renameSection($sectionSource, $sectionTarget);
        }

        if (!isset($this->content[$sectionSource])) {
            return false;
        }
        $this->mergeValues($this->content[$sectionSource], $sectionTarget);
        if ($sectionSource == '0') {
            $this->content[$sectionSource] = array();
        } else {
            unset($this->content[$sectionSource]);
        }
        $this->modified = true;

        return true;
    }
public function mergeSection($sectionSource, $sectionTarget)
    {
        if (!isset($this->content[$sectionTarget])) {
            return $this->renameSection($sectionSource, $sectionTarget);
        }

        if (!isset($this->content[$sectionSource])) {
            return false;
        }
        $this->mergeValues($this->content[$sectionSource], $sectionTarget);
        if ($sectionSource == '0') {
            $this->content[$sectionSource] = array();
        } else {
            unset($this->content[$sectionSource]);
        }
        $this->modified = true;

        return true;
    }
public function mergeSection ( $ sectionSource , $ sectionTarget ) { if ( ! isset ( $ this -> content [ $ sectionTarget ] ) ) { return $ this -> renameSection ( $ sectionSource , $ sectionTarget ) ; } if ( ! isset ( $ this -> content [ $ sectionSource ] ) ) { return false ; } $ this -> mergeValues ( $ this -> content [ $ sectionSource ] , $ sectionTarget ) ; if ( $ sectionSource == '0' ) { $ this -> content [ $ sectionSource ] = array ( ) ; } else { unset ( $ this -> content [ $ sectionSource ] ) ; } $ this -> modified = true ; return true ; }
move values of a section into an other section and remove the section.

@return bool true if the merge is a success
move values of a section into an other section and remove the section .