Properties

$_phpver

$_phpver : array

The PHP version of the system.

Type

array

$_supported

$_supported : array

Supported versions of PHP.

Type

array

$_moduleList

$_moduleList : array

The module list <pre> KEY: extension name VALUE: Either the description or an array with the following entries: descrip: (string) Module description error: (string) Error message fatal: (boolean) Is missing extension fatal? function: (string) Reference to function to run. If function returns boolean false, error message will be output.

If function returns a string, this error message will be used. phpver: (string) The PHP version above which to do the test

Type

array

$_settingsList

$_settingsList : array

PHP settings list.

KEY:   setting name
VALUE: An array with the following entries:
       error: (string) Error message.
       function: (string) Reference to function to run. If function
                 returns non-empty value, error message will be output.
       setting: (mixed) Either a boolean (whether setting should be
                on or off) or 'value', which will simply output the
                value of the setting.

Type

array

$_pearList

$_pearList : array

PEAR modules list.

KEY:   PEAR class name
VALUE: An array with the following entries:
       depends: (?) This module depends on another module.
       error: (string) Error message.
       function: (string) Reference to function to run if module is
                 found.
       path: (string) The path to the PEAR module. Only needed if
                KEY is not autoloadable.
       required: (boolean) Is this PEAR module required?

Type

array

$_fileList

$_fileList : array

Required configuration files.

KEY:   file path
VALUE: The error message to use (null to use default message)

Type

array

$_appList

$_appList : array

Inter-Horde application dependencies.

KEY:   app name
VALUE: An array with the following entries:
       error: (string) Error message.
       version: (string) Minimum version required of the app.

Type

array

Methods

__construct()

__construct() 

Constructor.

phpModuleCheck()

phpModuleCheck() : string

Check the list of PHP modules.

Returns

string —

The HTML output.

phpSettingCheck()

phpSettingCheck(  $settings = null) : string

Checks the list of PHP settings.

Parameters

$settings

Returns

string —

The HTML output.

pearModuleCheck()

pearModuleCheck() : string

Check the list of PEAR modules.

Returns

string —

The HTML output.

requiredFileCheck()

requiredFileCheck() : string

Check the list of required files

Returns

string —

The HTML output.

requiredAppCheck()

requiredAppCheck() : string

Check the list of required Horde applications.

Returns

string —

The HTML output.

getPhpVersionInformation()

getPhpVersionInformation() : object

Obtain information on the PHP version.

Returns

object —

stdClass TODO

appTests()

appTests() : string

Any application specific tests that need to be done.

Returns

string —

HTML output.

_splitPhpVersion()

_splitPhpVersion(string  $version) 

Parse PHP version.

Parameters

string $version

A PHP-style version string (X.X.X).

_checkLzCompression()

_checkLzCompression() : boolean

Check for either horde_lz4 or lzf.

Returns

boolean —

False on error.

_checkIconvImplementation()

_checkIconvImplementation() : boolean

Additional check for iconv module implementation.

Returns

boolean —

False on error.

_checkLibxmlVersion()

_checkLibxmlVersion() : boolean

Additional check for libxml version.

Returns

boolean —

False on error.

_checkFileinfo()

_checkFileinfo() : boolean

Additional check for fileinfo module.

Returns

boolean —

False on error.

_checkPam()

_checkPam() 

_checkMongo()

_checkMongo() 

_checkMysql()

_checkMysql() 

_checkMemcache()

_checkMemcache() 

_checkMemoryLimit()

_checkMemoryLimit() : boolean

Additional check for 'session.gc_divisor'.

Returns

boolean —

Returns true if error string should be displayed.

_checkGcDivisor()

_checkGcDivisor() : boolean

Additional check for 'session.gc_divisor'.

Returns

boolean —

Returns true if error string should be displayed.

_checkGcProbability()

_checkGcProbability() : boolean

Additional check for 'session.gc_probability'.

Returns

boolean —

Returns true if error string should be displayed.

_requiredFileCheck()

_requiredFileCheck(array  $filelist, string  $php, boolean  $is_local = false) : string

Check the list of required files

Parameters

array $filelist

List of files to check.

string $php

PHP CLI location.

boolean $is_local

Is filelist a "local" file?

Returns

string —

The HTML output.

_status()

_status(boolean  $bool, boolean  $required = true) : string

Output the results of a status check.

Parameters

boolean $bool

The result of the status check.

boolean $required

Whether the checked item is required.

Returns

string —

The HTML of the result of the status check.

_outputLine()

_outputLine(array  $entry) : string

Internal output function.

Parameters

array $entry

Array with the following values:

1st value: Header
2nd value: Test Result
3rd value: Error message (if present)
4th value: Error level (if present): 0 = error, 1 = warning

Returns

string —

HTML output.