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

load_class( 'File/File.php' );

class Content{
  
  var $root;
  var $file;
  var $dir;

  function Content(){
    global $include_root;
    $this->file = new File();
    $this->root = $include_root.'../content/';
  }

  function getContent( $fileRequest ){
    list( $area, $file ) = explode( ':', $fileRequest );
    $fileName = $this->root . $area . '/' . $file;
    $this->file->setFileName( $fileName );
    $this->file->load();
    return $this->file->getData();
  }

} // end class

?>
Return current item: xmlSiteMaker