PHP Class AppserverIo\Appserver\Core\Utilities\Runlevels

Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$instance Runlevels The singleton instance.
$runlevels array String mappings for the runlevels.

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
__clone ( ) : void This is a utility class, so protect it against cloning.
__construct ( ) This is a utility class, so protect it against direct instantiation.

Method Details

getRunlevel() public méthode

Return's the value for the passed runlevel representation.
public getRunlevel ( string $runlevel ) : integer
$runlevel string The runlevel to return the value for
Résultat integer The runlevel's value

getRunlevels() public méthode

Return's an array with the available runlevels.
public getRunlevels ( ) : array
Résultat array The available runlevels

isRunlevel() public méthode

Query whether or not, the passed runlevel is valid.
public isRunlevel ( string $runlevel ) : boolean
$runlevel string The runlevel to query
Résultat boolean TRUE if the runlevel is valid, else FALSE

singleton() public static méthode

Return's the singleton instance.
public static singleton ( ) : Runlevels
Résultat Runlevels The singleton instance

Property Details

$instance protected_oe static_oe property

The singleton instance.
protected static Runlevels,AppserverIo\Appserver\Core\Utilities $instance
Résultat Runlevels

$runlevels protected_oe property

String mappings for the runlevels.
protected array $runlevels
Résultat array