PHP 클래스 DrewM\Morse\Morse

파일 보기 프로젝트 열기: drewm/morse 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$disabledFunctions In-memory cache of disabled functions names.

공개 메소드들

메소드 설명
featureExists ( string $featureID ) : boolean | null Tests if the named feature exists in the current environment.
functionDisabled ( string $functionName ) : boolean Tests if the named function is present and enabled in the current environment.
getFirstAvailable ( array $featureIDs = [] ) : string Tests an array of feature identifiers, stopping and returnig the first that tests true.

비공개 메소드들

메소드 설명
instantiateFromFeatureID ( string $featureID ) : callable Instantiates a test class for the given feature identifier.
populateDisabledFunctionsList ( ) : void Populates the internal memory cache of functions that have been disabled in the current environment

메소드 상세

featureExists() 공개 정적인 메소드

Tests if the named feature exists in the current environment.
public static featureExists ( string $featureID ) : boolean | null
$featureID string The identifier for the feature, e.g. 'db/pdo'.
리턴 boolean | null Returns true or false, or null if an error occured.

functionDisabled() 공개 정적인 메소드

Tests if the named function is present and enabled in the current environment.
public static functionDisabled ( string $functionName ) : boolean
$functionName string The name of the function to test.
리턴 boolean True if the function is disabled, false if it is available.

getFirstAvailable() 공개 정적인 메소드

Tests an array of feature identifiers, stopping and returnig the first that tests true.
public static getFirstAvailable ( array $featureIDs = [] ) : string
$featureIDs array Array of feature ID strings. If associative, the value is the ID, and the key is returned.
리턴 string Returns the first feature ID that tests true.

프로퍼티 상세

$disabledFunctions 보호되어 있는 정적으로 프로퍼티

In-memory cache of disabled functions names.
protected static $disabledFunctions