fogproject  1.5.9
About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.
  Fossies Dox: fogproject-1.5.9.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

taskstate.class.php
Go to the documentation of this file.
1 <?php
22 class TaskState extends FOGController
23 {
29  protected $databaseTable = 'taskStates';
35  protected $databaseFields = array(
36  'id' => 'tsID',
37  'name' => 'tsName',
38  'description' => 'tsDescription',
39  'order' => 'tsOrder',
40  'icon' => 'tsIcon',
41  );
47  protected $databaseFieldsRequired = array(
48  'name',
49  );
55  public function getIcon()
56  {
57  return $this->get('icon');
58  }
64  public static function getQueuedStates()
65  {
66  $queuedStates = range(0, 2);
67  self::$HookManager
68  ->processEvent(
69  'QUEUED_STATES',
70  array('queuedStates' => &$queuedStates)
71  );
72  return $queuedStates;
73  }
79  public static function getQueuedState()
80  {
81  $queuedState = 1;
82  self::$HookManager
83  ->processEvent(
84  'QUEUED_STATE',
85  array('queuedState' => &$queuedState)
86  );
87  return $queuedState;
88  }
94  public static function getCheckedInState()
95  {
96  $checkedInState = 2;
97  self::$HookManager
98  ->processEvent(
99  'CHECKEDIN_STATE',
100  array('checkedInState' => &$checkedInState)
101  );
102  return $checkedInState;
103  }
109  public static function getProgressState()
110  {
111  $progressState = 3;
112  self::$HookManager
113  ->processEvent(
114  'PROGRESS_STATE',
115  array('progressState' => &$progressState)
116  );
117  return $progressState;
118  }
124  public static function getCompleteState()
125  {
126  $completeState = 4;
127  self::$HookManager
128  ->processEvent(
129  'COMPLETE_STATE',
130  array('completeState' => &$completeState)
131  );
132  return $completeState;
133  }
139  public static function getCancelledState()
140  {
141  $cancelledState = 5;
142  self::$HookManager
143  ->processEvent(
144  'CANCELLED_STATE',
145  array('cancelledState' => &$cancelledState)
146  );
147  return $cancelledState;
148  }
149 }
TaskState\getCompleteState
static getCompleteState()
Definition: taskstate.class.php:124
TaskState\getProgressState
static getProgressState()
Definition: taskstate.class.php:109
TaskState\getCheckedInState
static getCheckedInState()
Definition: taskstate.class.php:94
TaskState
Definition: taskstate.class.php:23
TaskState\getCancelledState
static getCancelledState()
Definition: taskstate.class.php:139
TaskState\getQueuedStates
static getQueuedStates()
Definition: taskstate.class.php:64
TaskState\getQueuedState
static getQueuedState()
Definition: taskstate.class.php:79
TaskState\$databaseFieldsRequired
$databaseFieldsRequired
Definition: taskstate.class.php:47
FOGController
Definition: fogcontroller.class.php:29
TaskState\$databaseTable
$databaseTable
Definition: taskstate.class.php:29
TaskState\getIcon
getIcon()
Definition: taskstate.class.php:55
TaskState\$databaseFields
$databaseFields
Definition: taskstate.class.php:35