Trace: » Writing reports for reports 1.3.0 (GLPI 0.72.x)

Writing reports for reports 1.3.0 (GLPI 0.72.x)

Each report is located in a separate directory in report/

SimpleReport is still available for compatibility. Please use AutoReport class instead if you want to add new reports

Migrate reports from reports 1.2.x to 1.3.x

Plugin's structure changed between version 1.2.x and 1.3.x.

To migrate a report you should :

  • create a directory with the name of your report in the 'report/' directory
  • copy in this directory :
    • the report file
    • the report's locale files
    • the report's configuration file
  • rename all your php files by removing the 'plugin_report' prefix (for example plugin_report.myreport.php to myreport.php)
  • change locale variables from $GEDIFFREPORTLANG to $LANG['plugin_reports']