Location: PHPKode > scripts > xmlSiteMaker > xmlsitemaker/include/SiteGenerator/SiteGenerator.php
<?php

load_class( 'PageRepository/PageRepository.php' );
load_class( 'Page/PageFactory.php' );

class SiteGenerator{

  var $pageRepository;

  function SiteGenerator(){
    $this->pageRepository = new PageRepository();
    $this->pageFactory = new PageFactory();
  }

  function generate(){
    $this->pageRepository->pageIdEnumerator->reset();
    while( $this->pageRepository->pageIdEnumerator->moveNext() ){
      $id = $this->pageRepository->pageIdEnumerator->getElement();
      $page = $this->pageFactory->getPageById( $id );
      $page->generate();
    }
  }

} // end class


?>
Return current item: xmlSiteMaker