PHP 클래스 AppserverIo\Appserver\Core\Utilities\Runlevels

파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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