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

load_class( 'Page/PageClasses/PageBase.php' );

class PageSite extends PageBase{

  function PageSite( $pageId ){
    $this->PageBase();

    $this->pageId = $pageId;

    $this->elements[] = new ElementForStub(
      array( 'params' => array( 'text' => "#page_id#\n#page_content#\n" ) )
    );

    // #page_id#
    $this->elements[] = new ElementPageId( $pageId );

    // #page_content#
    $this->elements[] = new ElementFromFile(
      array( 'name' => 'page_content', 'params' => array( 'fileName' => 'pages:'.$pageId.'.xml' ) )
    );

    $this->xsltName = 'site-page.xsl';
  }

} // end class

?>
Return current item: xmlSiteMaker