phpDocumentor ModuleWriting
[ class tree: ModuleWriting ] [ index: ModuleWriting ] [ all elements ]

Procedural File: TestModule.php

Source Location: /devices/test_module/TestModule.php

Page Details

This file contains the TestModule class

This is a very basic example of using the CAT API.

The module contains two files in the Files directory. They will illustrate the use of the DeviceConfig::copyFile() method. One fille will be coppied without the name change, for the second we will provide a new name. The API also contains a similar DeviceConfig::translateFile() method, which is special to Windows installers and not used in this example.

This module will collect all certificate files stored in the database for a given profile and will copy them to the working directory.

If, for the given profile, an information file is available, this will also be copied to the working directory.

The installer will collect all available configuration attributes and save them to a file in the form of the PHP print_r output.

Finally, the installer will create a zip archive containing all above files and this file will be sent to the user as the configurator file.

Go to the Device_TestModule and DeviceConfig class definitions to learn more.

Classes
Class Description
Device_TestModule This is the main implementation class of the module
Includes
require_once (DeviceConfig.php) [line 39]
[ Top ]



Documentation generated on Thu, 16 Apr 2015 10:26:08 +0000 by phpDocumentor 1.4.4