code/pages/WikiPage.php
public function getWikiRoot() {
		$current = $this;
		$parent = $current->Parent();
		while ($parent instanceof WikiPage) {
			$current = $parent;
			$parent = $current->Parent();
		}
		return $current;
	}
public function getWikiRoot() {
		$current = $this;
		$parent = $current->Parent();
		while ($parent instanceof WikiPage) {
			$current = $parent;
			$parent = $current->Parent();
		}
		return $current;
	}
public function getWikiRoot ( ) { $ current = $ this ; $ parent = $ current -> Parent ( ) ; while ( $ parent instanceof WikiPage ) { $ current = $ parent ; $ parent = $ current -> Parent ( ) ; } return $ current ; }
Get the root of the wiki that this wiki page exists in

@return WikiPage
Get the root of the wiki that this wiki page exists in