PHP Class PS, phpsysinfo

Datei anzeigen Open project: phpsysinfo/phpsysinfo Class Usage Examples

Public Methods

Method Description
__construct ( String $enc ) read the data into an internal array and also call the parent constructor
execute ( ) : void doing all tasks to get the required informations that the plugin needs result is stored in an internal array
the array is build like a tree, so that it is possible to get only a specific process with the childs
xml ( ) : SimpleXMLElement generates the XML content for the plugin

Private Methods

Method Description
_addchild ( Array $child, SimpleXMLExtended $xml, &$positions ) : SimpleXMLExtended recursive function to allow appending child processes to a parent process

Method Details

__construct() public method

read the data into an internal array and also call the parent constructor
public __construct ( String $enc )
$enc String encoding

execute() public method

doing all tasks to get the required informations that the plugin needs result is stored in an internal array
the array is build like a tree, so that it is possible to get only a specific process with the childs
public execute ( ) : void
return void

xml() public method

generates the XML content for the plugin
public xml ( ) : SimpleXMLElement
return SimpleXMLElement entire XML content for the plugin