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)  

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