Logo Search packages:      
Sourcecode: bamboo version File versions  Download package

PagePhp.php

<?php

class PagePhp extends Page {

      function &getDisplay() {
            # this is a hack because it requires that the pagestore be folderpagestore
            # also, we should find some better way to run php code.
            
            $phpfile = find_multilingual_content_file($this->storage, $this->type, $this->version);
            if (!is_file($phpfile))
                  return "no php file $this->phpfile found";
            ob_start();
                  include($phpfile);
                  $data = &ob_get_contents();
            ob_end_clean();
            return $data;
      }
      
}

return;
?>

Generated by  Doxygen 1.6.0   Back to index