Пример #1
0
 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);
         }
     }
 }