Device_TestModule __construct(
string
$device
)
|
|
Constructs a Device object.
It is CRUTCIAL that the constructor sets $this->supportedEapMethods to an array of methods available for the particular device.
$this->supportedEapMethods =
array(EAP::$TLS, EAP::$PEAP_MSCHAP2, EAP::$TTLS_PAP);
debug(4,"This device supports the following EAP methods: ");
debug(4,$this->supportedEapMethods);
}
Parameters:
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.php. |
API Tags:
Information Tags:
Final: | not to be redefined |
Redefinition of:
- DeviceConfig::__construct()
- device module constructor should be defined by each module, but if it is not, then here is a default one
prepare a zip archive containing files and settings which normally would be used inside the module to produce an installer
debug(4,"Test Module Installer start\n");
// create certificate files and save their names in $CA_files arrary
// copy a fixed file from the module Files directory
debug(2, "copying of Module.howto failed\n");
// copy a fixed file from the module Files directory and saveunde a different name
if( ! $this->copyFile('test_file','copied_test_file'))
debug(2, "copying of Module.howto to copied_test_file failed\n");
$installer_path =
$this->zipInstaller($this->attributes);
return($installer_path);
}
API Tags:
Return: | installer path name |
Access: | public |
Redefinition of:
- DeviceConfig::writeInstaller()
- placeholder for the main device method