private function reset() { $aryDirectory = scandir(getPath($this->path)); $this->xml = XmlHelper::fromString("<order><pages/></order>"); foreach ($aryDirectory as $strEntry) { if ($strEntry != "." && $strEntry != ".." && Page::isPage($this->path . "/" . $strEntry)) { $this->add($strEntry); } } }