public function getAllSections() {
    	$sections = array();
    	$section = $this->section;
    	do {
    		$sections[] = $section;
    	} while($section = $section->getSectionConfig()->getParentSection());

    	return array_reverse($sections);
    }
public function getAllSections() {
    	$sections = array();
    	$section = $this->section;
    	do {
    		$sections[] = $section;
    	} while($section = $section->getSectionConfig()->getParentSection());

    	return array_reverse($sections);
    }
public function getAllSections ( ) { $ sections = array ( ) ; $ section = $ this -> section ; do { $ sections [ ] = $ section ; } while ( $ section = $ section -> getSectionConfig ( ) -> getParentSection ( ) ) ; return array_reverse ( $ sections ) ; }
Recursively gets all the sections

@return array
Recursively gets all the sections