13.2. Folder Structure

The files that make up an optional module are stored in a folder under the Perforce Chronicle installation (CMSDIR), as follows:

A module has the following internal structure with all but the module.ini being optional.

acls/
   asserts/             - contains ACL assertion methods
controllers/
filters/
forms/
   decorators/          - contains form element decorator methods
   elements/            - contains custom form element classes
layouts/
   helpers/             - contains view helper methods
   scripts/             - contains layout scripts
models/
resources/
   dojo/                - for Dojo-specific javascript
   images/
   styles.css
tests/
   phpunit.xml          - configures test execution via PHPunit
validators/
views/
   helpers/             - contains view helper methods
   scripts/
      controller/       - contains view scripts for a specific controller
         action.phtml   - a view script for a specific action
workflows/
   actions/             - contains workflow action classes
   conditions/          - contains workflow condition classes
icon.png                - icon displayed on the Manage > Modules screen
Module.php              - Chronicle integration file
module.ini              - configuration file
Perforce Chronicle - Release: 2012.2/486814