PHP Класс AppserverIo\Appserver\Core\Utilities\Runlevels

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$instance Runlevels The singleton instance.
$runlevels array String mappings for the runlevels.

Открытые методы

Метод Описание
getRunlevel ( string $runlevel ) : integer Return's the value for the passed runlevel representation.
getRunlevels ( ) : array Return's an array with the available runlevels.
isRunlevel ( string $runlevel ) : boolean Query whether or not, the passed runlevel is valid.
singleton ( ) : Runlevels Return's the singleton instance.

Приватные методы

Метод Описание
__clone ( ) : void This is a utility class, so protect it against cloning.
__construct ( ) This is a utility class, so protect it against direct instantiation.

Описание методов

getRunlevel() публичный метод

Return's the value for the passed runlevel representation.
public getRunlevel ( string $runlevel ) : integer
$runlevel string The runlevel to return the value for
Результат integer The runlevel's value

getRunlevels() публичный метод

Return's an array with the available runlevels.
public getRunlevels ( ) : array
Результат array The available runlevels

isRunlevel() публичный метод

Query whether or not, the passed runlevel is valid.
public isRunlevel ( string $runlevel ) : boolean
$runlevel string The runlevel to query
Результат boolean TRUE if the runlevel is valid, else FALSE

singleton() публичный статический метод

Return's the singleton instance.
public static singleton ( ) : Runlevels
Результат Runlevels The singleton instance

Описание свойств

$instance защищенное статическое свойство

The singleton instance.
protected static Runlevels,AppserverIo\Appserver\Core\Utilities $instance
Результат Runlevels

$runlevels защищенное свойство

String mappings for the runlevels.
protected array $runlevels
Результат array