PHP 클래스 Gc\Registry

상속: extends ArrayObjec\ArrayObject
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $array = [], integer $flags = parent::ARRAY_AS_PROPS ) Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object
get ( string $index ) : mixed getter method, basically same as offsetGet().
getInstance ( ) : Registry Retrieves the default registry instance.
isRegistered ( string $index ) : boolean Returns true if the $index is a named value in the registry, or false if $index was not found in the registry.
offsetExists ( string $index ) : boolean Returns true if the $index is a named value in the registry, or false if $index was not found in the registry.
set ( string $index, mixed $value ) : void setter method, basically same as offsetSet().
setInstance ( Registry $registry ) : void Set the default registry instance to a specified instance.
unsetInstance ( ) : void Unset the default registry instance.

보호된 메소드들

메소드 설명
init ( ) : void Initialize the default registry instance.

메소드 상세

__construct() 공개 메소드

Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object
public __construct ( array $array = [], integer $flags = parent::ARRAY_AS_PROPS )
$array array data array
$flags integer ArrayObject flags

get() 공개 정적인 메소드

This method can be called from an object of type Zendregistry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
public static get ( string $index ) : mixed
$index string - get the value associated with $index
리턴 mixed

getInstance() 공개 정적인 메소드

Retrieves the default registry instance.
public static getInstance ( ) : Registry
리턴 Registry

init() 보호된 정적인 메소드

Initialize the default registry instance.
protected static init ( ) : void
리턴 void

isRegistered() 공개 정적인 메소드

Returns true if the $index is a named value in the registry, or false if $index was not found in the registry.
public static isRegistered ( string $index ) : boolean
$index string Index
리턴 boolean

offsetExists() 공개 메소드

Returns true if the $index is a named value in the registry, or false if $index was not found in the registry.
public offsetExists ( string $index ) : boolean
$index string Index
리턴 boolean

set() 공개 정적인 메소드

This method can be called from an object of type Zendregistry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
public static set ( string $index, mixed $value ) : void
$index string The location in the ArrayObject in which to store the value.
$value mixed The object to store in the ArrayObject.
리턴 void

setInstance() 공개 정적인 메소드

Set the default registry instance to a specified instance.
public static setInstance ( Registry $registry ) : void
$registry Registry An object instance of type Registry, or a subclass.
리턴 void

unsetInstance() 공개 정적인 메소드

Primarily used in tearDown() in unit tests.
public static unsetInstance ( ) : void
리턴 void