/lib/CreateStaticInfo.php

Description

Standalone application to generate a PHP class containing constants associated with "static" information about the running system.

  • author: Paul Blankenbaker
  • version: $version$
Classes
Class Description
CreateStaticInfo Class used to create the static information pages used by the NST WUI.
Includes
include_once ('/etc/nst/iso/NstIso.php') (line 17)
require_once ('CommandLine.php') (line 13)

Load command line support class.

require_once ('Properties.php') (line 14)
Functions
createAllIfMissing (line 785)

Checks to see if static info files need to be created and if so, creates them using semaphores.

void createAllIfMissing ()
createAllStaticFiles (line 774)

Creates default static information and writes out files.

void createAllStaticFiles ()
createBashFile (line 717)

Create a bash script file static information.

void createBashFile ( $fname, [ $force = false])
  • $fname
  • $force
createJavaScriptFile (line 729)

Create a JavaScript script file static information.

void createJavaScriptFile ( $fname, [ $force = false])
  • $fname
  • $force
createPhpArrayFile (line 704)

Create a PHP file with static information as a PHP array.

void createPhpArrayFile ( $fname, [ $force = false])
  • $fname
  • $force
createPhpFile (line 692)

Create a PHP class file with static information.

void createPhpFile ( $fname, [ $force = false])
  • $fname
  • $force
createXmlFile (line 741)

Create a XML file of static information.

void createXmlFile ( $fname, [ $force = false])
  • $fname
  • $force
createXslFile (line 753)

Create a XSL file of static information.

void createXslFile ( $fname, [ $force = false])
  • $fname
  • $force
getMachine (line 123)

Get the machine hardware name (uname --machine).

void getMachine ()
getMemTotal (line 516)

This method pulls total memory (in kB) from /proc/meminfo using source code based off the memory() method found in "class.Linux.inc.php" file from phpSysInfo 3.0-RC6.

void getMemTotal ()
getNstIsoBuildDateSecs (line 101)

Extract NST ISO Build date (short format) from system.

void getNstIsoBuildDateSecs ()
getNstIsoBuildDateShort (line 83)

Extract NST ISO Build date (short format) from system.

void getNstIsoBuildDateShort ()
getNstIsoBuildSvnRevision (line 62)

Extract NST ISO SVN value: Default: 1426 - if not found.

void getNstIsoBuildSvnRevision ()
getNstWuiBuildDate (line 75)

Get NST WUI Build date in /bin/date format.

void getNstWuiBuildDate ()
getNstWuiBuildDateSecs (line 131)

Get NST WUI Build date in short format.

void getNstWuiBuildDateSecs ()
getNstWuiBuildDateShort (line 94)

Get NST WUI Build date in short format.

void getNstWuiBuildDateShort ()
getRegistrationCode (line 139)

Get the NST Registration Code (for a subscribed NST system) or

void getRegistrationCode ()
getSessionConfigTimeout (line 112)

Get session timeout in minutes.

void getSessionConfigTimeout ()
getSysInfoArray (line 538)

Returns ALL values as a associative array.

void getSysInfoArray ([ $force = false])
  • $force
hyperVisorType (line 191)

Determine VMware/VirtualBox Hypervisor type...

void hyperVisorType ()
isLiveCdBoot (line 166)

Determine if this is a live CD/DVD/USB boot (returns true if so).

void isLiveCdBoot ()
isVbBoot (line 270)

Determine if this is a VirtualBox virtual machine boot (returns true if so).

void isVbBoot ()
isVmBoot (line 176)

Determine if this is a VMware virtual machine boot (returns true if so).

void isVmBoot ()
kernel (line 498)

This method pulls kernel information from /proc/version using source code based off the kernel() method found in "class.Linux.inc.php" file from phpSysInfo 3.0-RC6.

void kernel ()
loadCurrentValues (line 804)

Creates default static information and writes out files.

void loadCurrentValues ()
openVmToolsVersion (line 243)

Determine Open VMware Tools Version...

void openVmToolsVersion ()
parseCpuInfo (line 377)

This method pulls CPU information from /proc/cpuinfo using source code based off the cpu_info() method found in "class.Linux.inc.php" file from phpSysInfo 3.0-RC6.

void parseCpuInfo ()
printBash (line 631)

Dumps bash variables of static information.

void printBash ( $fh)
  • $fh
printBashConst (line 338)

Prints out a SYSINFO_NAME constant for bash script.

void printBashConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
printJavaScript (line 641)

Dumps bash variables of static information.

void printJavaScript ( $fh)
  • $fh
printJavaScriptConst (line 347)

Prints out a constant for JavaScript sysInfo[] array.

void printJavaScriptConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
printNumericConst (line 332)

Prints out a numeric constant for PHP class.

void printNumericConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
printPhp (line 600)

Dumps static information as a PHP class.

void printPhp ( $fh)
  • $fh
printPhpArray (line 624)

Dumps static information as a PHP array.

void printPhpArray ( $fh)
  • $fh
printTextConst (line 326)

Prints out a text constant for PHP class.

void printTextConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
printXml (line 653)

Dumps xml variables of static information.

void printXml ( $fh)
  • $fh
printXmlConst (line 356)

Prints out a constant for XML properties file.

void printXmlConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
printXsl (line 672)

Dumps xsl variables of static information.

void printXsl ( $fh)
  • $fh
printXslConst (line 365)

Prints out a constant for XSL file.

void printXslConst ( $fh,  $name,  $val)
  • $fh
  • $name
  • $val
staticInfoLastUpdate (line 531)

Get static info last update time in /bin/date format.

void staticInfoLastUpdate ()
vboxGuestAdditionVersion (line 292)

Determine VirtualBox Guest Addition Version...

void vboxGuestAdditionVersion ()
writeAllStaticFiles (line 764)

Writes out static information in all file formats.

void writeAllStaticFiles ()

Documentation generated on Sun, 11 Feb 2018 07:41:02 -0500 by phpDocumentor 1.4.4