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)  

imagelisting.php
Go to the documentation of this file.
1 <?php
22 require '../commons/base.inc.php';
23 try {
24  $imageCount = FOGCore::getClass('ImageManager')
25  ->count();
26  if ($imageCount < 1) {
27  throw new Exception(
28  _('There are no images on this server')
29  );
30  }
33  'Image',
34  array('id' => $imageids),
35  'name'
36  );
37  foreach ((array)$imageids as $index => $imageid) {
38  printf(
39  '\tID# %d\t-\t%s\n',
40  $imageid,
41  $imagenames[$index]
42  );
43  unset(
44  $imageid,
45  $imagenames[$index],
46  $imageids[$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
$imageids
if($imageCount< 1) $imageids
Definition: imagelisting.php:31
exit
foreach((array) $imageids as $index=> $imageid) catch(Exception $e) exit
Definition: imagelisting.php:49
$imagenames
$imagenames
Definition: imagelisting.php:32
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