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

file listing

  1. <?php
  2. /**
  3.  * This file contains the Devices class.
  4.  *
  5.  * @package ModuleWriting
  6.  */
  7. /**
  8.  * The Devices class holds a list of all devices the CAT knows about
  9.  * 
  10.  * @author Tomasz Wolniewicz <twoln@umk.pl>
  11.  * 
  12.  * @license http://ticker.eduroam.lu/cat/LICENSE
  13.  * 
  14.  * @package ModuleWriting
  15.  */
  16. class Devices{
  17.  
  18. /**
  19.  * Each device is defined as a three-element array within this array
  20.  *
  21.  * - 'display' is the name shown on the GUI button
  22.  * - 'directory' is the subdirectory of devices directory, where the device module resides
  23.  * - 'module' is the name of the module class, the same name with .php added will be used as the name of the main include file for the module
  24.  * - 'sign' if defined points to an external program which will sign a file. The first argument of this program must be the
  25.  * input file name, the second - the signed file filename.
  26.  *
  27.  * @example devices/devices.php file listing
  28.  * @return array the device modules
  29.  */
  30. public static function listDevices({
  31.     return array(
  32.  'vista'=>array(
  33.    'display'=>_("MS Windows Vista and newer"),
  34.    'directory'=>'ms_vista_plus',
  35.    'module'=>'Vista7',
  36.    /* 'sign'=>'/opt/local/GN3/CAT/ms_windows_sign' */
  37.    ),
  38.     
  39.  'xp'=>array(
  40.    'display'=>_("MS Windows XP SP3"),
  41.    'directory'=>'ms_xp',
  42.    'module'=>'WindowsXP',
  43.    /* 'sign'=>'/opt/local/GN3/CAT/ms_windows_sign'*/
  44.    ),
  45.     
  46.  'mobileconfig'=>array(
  47.     'display'=>_("Apple mobile devices and Mac OS X Lion"),
  48.     'directory'=>'apple_mobileconfig',
  49.     'module'=>'mobileconfig',
  50.     /* 'sign'=>'/opt/local/GN3/CAT/mobileconfig_sign' */
  51.     ),
  52.  
  53.  'welcomeletter'=>array(
  54.     'display'=>_("Welcome Letter"),
  55.     'directory'=>'welcomeletter',
  56.     'module'=>'welcomeletter'
  57.    ),
  58.     
  59.  'test'=>array(
  60.     'display'=>_("Test"),
  61.     'directory'=>'test_module',
  62.     'module'=>'TestModule'
  63.    ),
  64. );
  65. }
  66. }
  67. ?>

Documentation generated on Thu, 13 Oct 2011 08:42:10 +0200 by phpDocumentor 1.4.3