samedi 18 février 2017

Pattern for Report Plugins

I'm trying to make an extensible report system for my PHP application. I've created an abstract class that specifies parameters such as a title and functions such as get title and an abstract get report.

Where I'm stuck is how to make it specify user setting parameters that should be presented to the user in the reporting interface. This would be so that after loading a particular report you could then set a number of different parameters via the UI that control the content of the report.

I need to be able to have a parameter name, description/help text label, and possibly supply preset values that have to be selected from.

Can anyone advise me of how you do this or a design pattern I can use, particularly in PHP?

Aucun commentaire:

Enregistrer un commentaire