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

load_class( 'Page/PageClasses/PageFP.php' );
load_class( 'Page/PageClasses/PageSite.php' );

class PageFactory{

  function PageFactory(){
  }

  function getPageById( $id ){
    switch ( $id ){
      case 'fp':
        $page = new PageFP();
        break;
      default:
        $page = new PageSite( $id );
        break;
    }
    return $page;
  }

} // end class

?>
Return current item: xmlSiteMaker