PHP 클래스 Horde_Test, horde

$Horde: horde/lib/Test.php,v 1.21 2004/02/14 02:40:35 chuck Exp $ Copyright 1999-2004 Charles J. Hagenbuch Copyright 1999-2004 Jon Parise Copyright 2002-2004 Brent J. Nordquist Copyright 2003-2004 Michael Slusarz See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
저자: Chuck Hagenbuch ([email protected])
저자: Jon Parise ([email protected])
저자: Brent J. Nordquist ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_appList array
KEY:   app name
VALUE: An array with the following entries:
       error: (string) Error message.
       version: (string) Minimum version required of the app.
$_fileList array
KEY:   file path
VALUE: The error message to use (null to use default message)
$_moduleList array If function returns a string, this error message will be used. phpver: (string) The PHP version above which to do the test
$_pearList array
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?
$_phpver array The PHP version of the system.
$_settingsList array
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.
$_supported array Supported versions of PHP.

공개 메소드들

메소드 설명
__construct ( ) Constructor.
appTests ( ) : string Any application specific tests that need to be done.
getPhpVersionInformation ( ) : object Obtain information on the PHP version.
pearModuleCheck ( ) : string Check the list of PEAR modules.
phpModuleCheck ( ) : string Check the list of PHP modules.
phpSettingCheck ( $settings = null ) : string Checks the list of PHP settings.
requiredAppCheck ( ) : string Check the list of required Horde applications.
requiredFileCheck ( ) : string Check the list of required files

보호된 메소드들

메소드 설명
_checkFileinfo ( ) : boolean Additional check for fileinfo module.
_checkGcDivisor ( ) : boolean Additional check for 'session.gc_divisor'.
_checkGcProbability ( ) : boolean Additional check for 'session.gc_probability'.
_checkIconvImplementation ( ) : boolean Additional check for iconv module implementation.
_checkLibxmlVersion ( ) : boolean Additional check for libxml version.
_checkMemoryLimit ( ) : boolean Additional check for 'session.gc_divisor'.
_checkMongo ( )
_checkPam ( )
_outputLine ( array $entry ) : string Internal output function.
_requiredFileCheck ( array $filelist, string $php, boolean $is_local = false ) : string Check the list of required files
_splitPhpVersion ( string $version ) Parse PHP version.
_status ( boolean $bool, boolean $required = true ) : string Output the results of a status check.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

_checkFileinfo() 보호된 메소드

Additional check for fileinfo module.
protected _checkFileinfo ( ) : boolean
리턴 boolean False on error.

_checkGcDivisor() 보호된 메소드

Additional check for 'session.gc_divisor'.
protected _checkGcDivisor ( ) : boolean
리턴 boolean Returns true if error string should be displayed.

_checkGcProbability() 보호된 메소드

Additional check for 'session.gc_probability'.
protected _checkGcProbability ( ) : boolean
리턴 boolean Returns true if error string should be displayed.

_checkIconvImplementation() 보호된 메소드

Additional check for iconv module implementation.
protected _checkIconvImplementation ( ) : boolean
리턴 boolean False on error.

_checkLibxmlVersion() 보호된 메소드

Additional check for libxml version.
protected _checkLibxmlVersion ( ) : boolean
리턴 boolean False on error.

_checkMemoryLimit() 보호된 메소드

Additional check for 'session.gc_divisor'.
protected _checkMemoryLimit ( ) : boolean
리턴 boolean Returns true if error string should be displayed.

_checkMongo() 보호된 메소드

protected _checkMongo ( )

_checkPam() 보호된 메소드

protected _checkPam ( )

_outputLine() 보호된 메소드

Internal output function.
protected _outputLine ( array $entry ) : string
$entry array 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
리턴 string HTML output.

_requiredFileCheck() 보호된 메소드

Check the list of required files
protected _requiredFileCheck ( array $filelist, string $php, boolean $is_local = false ) : string
$filelist array List of files to check.
$php string PHP CLI location.
$is_local boolean Is filelist a "local" file?
리턴 string The HTML output.

_splitPhpVersion() 보호된 메소드

Parse PHP version.
protected _splitPhpVersion ( string $version )
$version string A PHP-style version string (X.X.X).

_status() 보호된 메소드

Output the results of a status check.
protected _status ( boolean $bool, boolean $required = true ) : string
$bool boolean The result of the status check.
$required boolean Whether the checked item is required.
리턴 string The HTML of the result of the status check.

appTests() 공개 메소드

Any application specific tests that need to be done.
public appTests ( ) : string
리턴 string HTML output.

getPhpVersionInformation() 공개 메소드

Obtain information on the PHP version.
public getPhpVersionInformation ( ) : object
리턴 object stdClass TODO

pearModuleCheck() 공개 메소드

Check the list of PEAR modules.
public pearModuleCheck ( ) : string
리턴 string The HTML output.

phpModuleCheck() 공개 메소드

Check the list of PHP modules.
public phpModuleCheck ( ) : string
리턴 string The HTML output.

phpSettingCheck() 공개 메소드

Checks the list of PHP settings.
public phpSettingCheck ( $settings = null ) : string
리턴 string The HTML output.

requiredAppCheck() 공개 메소드

Check the list of required Horde applications.
public requiredAppCheck ( ) : string
리턴 string The HTML output.

requiredFileCheck() 공개 메소드

Check the list of required files
public requiredFileCheck ( ) : string
리턴 string The HTML output.

프로퍼티 상세

$_appList 보호되어 있는 프로퍼티

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

$_fileList 보호되어 있는 프로퍼티

KEY:   file path
VALUE: The error message to use (null to use default message)
protected array $_fileList
리턴 array

$_moduleList 보호되어 있는 프로퍼티

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

$_pearList 보호되어 있는 프로퍼티

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?
protected array $_pearList
리턴 array

$_phpver 보호되어 있는 프로퍼티

The PHP version of the system.
protected array $_phpver
리턴 array

$_settingsList 보호되어 있는 프로퍼티

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.
protected array $_settingsList
리턴 array

$_supported 보호되어 있는 프로퍼티

Supported versions of PHP.
protected array $_supported
리턴 array