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

load_class( 'File/File.php' );

class PageWriter{

  var $file;
  var $root;
  var $pageId;

  function PageWriter(){
    $this->file = new File();
    $this->root = '../output/';
  }
  
  function setPageId( $pageId ){
    $this->pageId = $pageId;
  }

  function setContent( $content ){
    $this->file->setData( $content );
  }

  function write(){
    $this->file->setFileName( $this->getFileNameToOutput() );
    $this->file->save();
  }

  function getFileNameToOutput(){
    return $this->root . $this->pageId.'.html';
  }

} // end class

?>
Return current item: xmlSiteMaker