private function AddPageBranch(Page $page)
    {
        $this->AddPage($page);
        $child = $this->pageTree->FirstChildOf($page);
        while ($child)
        {
            $this->AddPageBranch($child);
            $child = $this->pageTree->NextOf($child);
        }
    }
private function AddPageBranch(Page $page)
    {
        $this->AddPage($page);
        $child = $this->pageTree->FirstChildOf($page);
        while ($child)
        {
            $this->AddPageBranch($child);
            $child = $this->pageTree->NextOf($child);
        }
    }
private function AddPageBranch ( Page $ page ) { $ this -> AddPage ( $ page ) ; $ child = $ this -> pageTree -> FirstChildOf ( $ page ) ; while ( $ child ) { $ this -> AddPageBranch ( $ child ) ; $ child = $ this -> pageTree -> NextOf ( $ child ) ; } }
Adds a page and all of its children
@param Page $page The current page
Adds a page and all of its children