L_OK = 0
This class implements full functionality of the generic XML device the only fuction of the extenstions of this class is to specify supported EAP methods.
Instead of specifying supported EAPS an extension can set $all_eaps to true this will cause the installer to configure all EAP methods supported by the current profile and declared by the given device.
$attributes : mixed|string|int
Array passing all options to the device module.
$attrbutes array contains option values defined for the institution and a particular profile (possibly overriding one another) ready for the device module to consume.
For each of the options the value is another array of vales (even if only one value is present). Some attributes may be missing if they have not been configured for a viven institution or profile.
The following attributes are meant to be used by device modules:
these attributes are available and can be used, but the "internal" attributes are better suited for modules
the path to the profile signing program device modules which require signing should use this property to exec the signer the signer program must accept two arguments - input and output file names the signer program mus operate in the local directory and filenames are relative to this directory
setup(\core\AbstractProfile profile, token = NULL, importPassword = NULL) :
Set up working environment for a device module
Sets up the device module environment taking into account the actual profile selected by the user in the GUI. The selected profile is passed as the Profile $profile argumant.
This method needs to be called after the device instance has been created (the GUI class does that)
setup performs the following tasks:
the profile object which will be passed by the caller
getAttributeValue(mixed|string|int attributeArray, string|int index1, string|int index2) :
This is a helper fuction to retrieve a value from two-dimensional arrays The function tests if the value for the first indes is defined and then the same with the second and finally returns the value if something on the way is not defined, NULL is returned
createTemporaryDirectory( purpose = installer, failIsFatal = 1) : mixed|string|int
create a temporary directory and return the location
one of 'installer', 'logo', 'test' defined the purpose of the directory
decides if a creation failure should cause an error; defaults to true
the tuple of: base path, absolute path for directory, directory name