This class can be used to generate OpenOffice by using templates and a template engine to replace the template placeholders by parameter values.
The class extends the template engine class TinyButStrong.
The class allows the creation of OpenOffice documents dynamically, providing the separation between the document formatting logic and content.
In practice, you create a template using OpenOffice with the TinyButStrong tags. Then you create a PHP script that calls the class to merges the document template with dynamically defined data to generate the output OpenOffice document.
Features:
- It works on Linux, Windows and other platforms.
- It works with OpenOffice 1.x documents and the new format used in OpenOffice 2 (OpenDocument 1.0, OASIS standard).
- It does not need an installation of OpenOffice on the server.
- It uses the TinyButStrong native syntax and methods. It can merge 'var' and 'blocks' using the TinyButStrong syntax like (var, block, if, then, frm, ...). The merge results respects the layout, justification and styles used in the template.
This class can execute MySQL queries using parameter lists.
It can connect to a MySQL database and execute SELECT, INSERT, UPDATE, DELETE and TRUNCATE queries from parameter lists that define tables, table fields, field values and condition clauses.
This class can be used to compute the dates of Christian holidays that change depending on the year.
It takes a given year as parameter . The class can compute the date on the given year for the Ascension, Easter Pentecost, Ash Wednesday aud Good Friday days.
The code and comments are in French. In French:
Calcule les dates des fêtes de Pâques, Assension, Pentecôte, Mercredi des Cendres et Vendredi Saint pour l'année spécifiée (valable de 1582 à 2500).