DeviceConfig __construct(
$device
)
|
|
Constructs a Device object.
string $device - a pointer to a device module, which must be an index of one of the devices defined in the Devices array in devices/devices.php. The role of the constructor is to prepare the working enironment for the device module by:
- setting the module source directory as the $module_path proprety
- setting the supportedEapMethods (from the module $my_eap_methods variable)
Parameters:
API Tags:
Information Tags:
Final: | not to be redefined |
Copy a file from the module location to the temporary directory.
If the second argument is provided then the file will be saved under the name taken form this argument. If only one parameter is given, source and destination filenames are the same
API Tags:
Return: | result of the copy operation |
Access: | protected |
Information Tags:
Final: | not to be redefined |
void dumpAttibutes(
$file
)
|
|
dumps attributes for debugging purposes
dumpAttibutes method is supplied for debuging purposes, it simply dumps the attribute array to a file with name passed in the attribute.
Parameters:
API Tags:
void saveCertificateFiles(
$ca_array,
$format
)
|
|
Save certificate files in either DER or PEM format
Parameters:
API Tags:
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 inside of the Device::writeInstaller method.
setup performs the following tasks:
- collect profile attributes and pass them as the attributes property;
- create the temporary working directory
- process CA certificates and store them as 'internal:CAs' attribute
- process and save optional info files and store references to them in
'internal:info_file' attribute
Parameters:
API Tags:
Information Tags:
Final: | not to be redefined |
void writeInstaller(
$profile
)
|
|
placeholder for the main device method
writeInstaller method needs to be redefined in every ExtendedConfig the one below is just an example
Parameters:
API Tags:
Redefined in descendants as: