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)  

snapinlisting.php
Go to the documentation of this file.
1 <?php
22 require '../commons/base.inc.php';
23 try {
24  $snapinCount = FOGCore::getClass('SnapinManager')
25  ->count();
26  if ($snapinCount < 1) {
27  throw new Exception(
28  _('There are no snapins on this server')
29  );
30  }
33  'Snapin',
34  array('id' => $snapinids),
35  'name'
36  );
37  foreach ((array)$snapinids as $index => $snapinid) {
38  printf(
39  '\tID# %d\t-\t%s\n',
40  $snapinid,
41  $snapinnames[$index]
42  );
43  unset(
44  $snapinid,
45  $snapinnames[$index],
46  $snapinids[$index]
47  );
48  }
49 } catch (Exception $e) {
50  echo $e->getMessage();
51 }
FOGBase\getClass
static getClass($class, $data='', $props=false)
Definition: fogbase.class.php:439
$snapinnames
$snapinnames
Definition: snapinlisting.php:32
$snapinids
if($snapinCount< 1) $snapinids
Definition: snapinlisting.php:31
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
exit
foreach((array) $snapinids as $index=> $snapinid) catch(Exception $e) exit
Definition: snapinlisting.php:49