PHP Класс DrewM\Morse\Morse

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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