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)  

snapinjob.class.php
Go to the documentation of this file.
1 <?php
22 class SnapinJob extends FOGController
23 {
29  protected $databaseTable = 'snapinJobs';
35  protected $databaseFields = array(
36  'id' => 'sjID',
37  'hostID' => 'sjHostID',
38  'stateID' => 'sjStateID',
39  'createdTime' => 'sjCreateTime',
40  );
46  protected $databaseFieldsRequired = array(
47  'hostID',
48  'stateID',
49  );
55  protected $additionalFields = array(
56  'host',
57  'state',
58  'snapintasks'
59  );
66  'Host' => array(
67  'id',
68  'hostID',
69  'host'
70  ),
71  'TaskState' => array(
72  'id',
73  'stateID',
74  'state'
75  )
76  );
82  protected function loadSnapintasks()
83  {
84  $snapintasks = self::getSubObjectIDs(
85  'SnapinTask',
86  array('jobID' => $this->get('id'))
87  );
88  $this->set('snapintasks', (array)$snapintasks);
89  }
95  public function cancel()
96  {
97  return $this->getManager()->cancel($this->get('id'));
98  }
99 }
SnapinJob\loadSnapintasks
loadSnapintasks()
Definition: snapinjob.class.php:82
SnapinJob\$additionalFields
$additionalFields
Definition: snapinjob.class.php:55
SnapinJob\$databaseFieldClassRelationships
$databaseFieldClassRelationships
Definition: snapinjob.class.php:65
SnapinJob\cancel
cancel()
Definition: snapinjob.class.php:95
SnapinJob\$databaseFieldsRequired
$databaseFieldsRequired
Definition: snapinjob.class.php:46
SnapinJob\$databaseFields
$databaseFields
Definition: snapinjob.class.php:35
FOGController
Definition: fogcontroller.class.php:29
SnapinJob\$databaseTable
$databaseTable
Definition: snapinjob.class.php:29
FOGBase\getSubObjectIDs
static getSubObjectIDs( $object='Host', $findWhere=array(), $getField='id', $not=false, $operator='AND', $orderBy='name', $groupBy=false, $filter='array_unique')
Definition: fogbase.class.php:2006
SnapinJob
Definition: snapinjob.class.php:23
FOGController\getManager
getManager()
Definition: fogcontroller.class.php:1039