Method | Description | |
---|---|---|
checkForExtensions ( array $arrExt = [] ) : void | Check for needed php extensions | |
executeProgram ( string $strProgramname, string $strArgs, &$strBuffer, boolean $booErrorRep = true ) : boolean | Execute a system program. return a trim()'d result. | |
fileexists ( string $strFileName ) : boolean | file exists | |
gdc ( string $strPath, boolean $booErrorRep = true ) : array | reads a directory and return the name of the files and directorys in it | |
getPlugins ( ) : array | get all configured plugins from phpsysinfo.ini (file must be included and processed before calling this function) | |
getWMI ( $wmi, string $strClass, array $strValue = [] ) : array | function for getting a list of values in the specified context optionally filter this list, based on the list from third parameter | |
rfts ( string $strFileName, &$strRet, integer $intLines, integer $intBytes = 4096, boolean $booErrorRep = true ) : boolean | read a file and return the content as a string |
Method | Description | |
---|---|---|
_findProgram ( string $strProgram ) : string | Find a system program, do also path checking when not running on WINNT on WINNT we simply return the name with the exe extension to the program name | |
_parse_log_file ( $string ) | ||
_timeoutfgets ( array $pipes, &$out, &$err, integer $timeout = 30 ) : void | get the content of stdout/stderr with the option to set a timeout for reading |
public static checkForExtensions ( array $arrExt = [] ) : void | ||
$arrExt | array | additional extensions for which a check should run |
return | void |
public static executeProgram ( string $strProgramname, string $strArgs, &$strBuffer, boolean $booErrorRep = true ) : boolean | ||
$strProgramname | string | name of the program |
$strArgs | string | arguments to the program |
$booErrorRep | boolean | en- or disables the reporting of errors which should be logged |
return | boolean | command successfull or not |
public static fileexists ( string $strFileName ) : boolean | ||
$strFileName | string | name of the file which should be check |
return | boolean | command successfull or not |
public static getPlugins ( ) : array | ||
return | array |
public static getWMI ( $wmi, string $strClass, array $strValue = [] ) : array | ||
$wmi | holds the COM object that we pull the WMI data from | |
$strClass | string | name of the class where the values are stored |
$strValue | array | filter out only needed values, if not set all values of the class are returned |
return | array | content of the class stored in an array |
public static rfts ( string $strFileName, &$strRet, integer $intLines, integer $intBytes = 4096, boolean $booErrorRep = true ) : boolean | ||
$strFileName | string | name of the file which should be read |
$intLines | integer | control how many lines should be read |
$intBytes | integer | control how many bytes of each line should be read |
$booErrorRep | boolean | en- or disables the reporting of errors which should be logged |
return | boolean | command successfull or not |