Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 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);
}