/** * 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; }
/** * 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); }