flyskypie / regulation-odt
0.2.0
2020-02-20 03:00 UTC
Requires
- nelexa/zip: dev-master
Requires (Dev)
- phpunit/phpunit: 8.5.x-dev
This package is auto-updated.
Last update: 2025-03-20 14:22:17 UTC
README
To generate Open Document Text file of regulation.
Regulation Array
The Chapter, Article, Paragraph, Subsection and Item should be key of array, and the value which been pointed been array, even there has not sub-regulation.
$regulationArray = [ 'Chapter 1' => [ 'Article 1' => [ 'Paragraph 1' => [ 'Subsection 1' => [ 'Item 1' => [ 'Item 1-1' => [] ] ] ] ], 'Article 1' => [] ] ];
Usage
use FlySkyPie\RegulationODText\ODText; $document = new ODText(); $document->setName('Name of Ragulation'); $document->setHistories(['amendment event', 'amendment event']); $document->setCaptered(true); $document->setRagulations($regulationArray);
Captered
If the regulation doesn't chaptered, please setCaptered
to false,
the array of regulation you provided may look like:
$array = [ 'Article 1' => [], 'Article 2' => [], 'Article 3' => [], 'Article 4' => [] ];