コード例 #1
0
ファイル: File.php プロジェクト: ungc0/comp356-mac15
 /**
  * Gets the report generator used for this file.
  *
  * @return string Name of the report generator class.
  */
 public function getGenerator()
 {
     if (!$this->_generator) {
         $this->_generator = Reports_Generator::factory($this);
     }
     return $this->_generator;
 }
コード例 #2
0
/**
 * Gets all the avaliable output formats.
 *
 * @return array Array in format className => readableName
 */
function reports_get_output_formats()
{
    return Reports_Generator::getFormats(REPORTS_GENERATOR_DIRECTORY);
}