code/ReflectionTemplate.php
public function getTopLevelBlocks() {
		$ret = array ();
		foreach($this->blockManifest as $block) {
			if(!$block->getParent()) {
				$ret[] = $block;			
			}
		}

		return $ret;
	}
public function getTopLevelBlocks() {
		$ret = array ();
		foreach($this->blockManifest as $block) {
			if(!$block->getParent()) {
				$ret[] = $block;			
			}
		}

		return $ret;
	}
public function getTopLevelBlocks ( ) { $ ret = array ( ) ; foreach ( $ this -> blockManifest as $ block ) { if ( ! $ block -> getParent ( ) ) { $ ret [ ] = $ block ; } } return $ ret ; }
Gets all the blocks at the top level
@return array
Gets all the blocks at the top level