PHP 트레잇 AppserverIo\Appserver\Core\Traits\ThreadedContextTrait

파일 보기 프로젝트 열기: appserver-io/appserver

공개 메소드들

메소드 설명
getAllKeys ( ) : array Returns the keys of the bound attributes.
getAttribute ( string $key ) : mixed Returns the value with the passed name from the context.
getAttributes ( ) : array All values registered in the context.
getSerial ( ) : string Returns the serial of the instance.
hasAttribute ( string $key ) : boolean Queries whether the attribute already exists or not.
maskKey ( string $key ) : string Creates a unique identifier to append attributes to the internal property table.
removeAttribute ( string $key ) : void Removes the attribue from the application.
setAttribute ( string $key, mixed $value ) : void Sets the passed key/value pair in the directory.
unmaskKey ( string $key ) : string Umasks the unique key.

메소드 상세

getAllKeys() 공개 메소드

Returns the keys of the bound attributes.
public getAllKeys ( ) : array
리턴 array The keys of the bound attributes

getAttribute() 공개 메소드

Returns the value with the passed name from the context.
또한 보기: AppserverIo\Psr\Context\ContextInterface::getAttribute()
public getAttribute ( string $key ) : mixed
$key string The key of the value to return from the context.
리턴 mixed The requested attribute

getAttributes() 공개 메소드

All values registered in the context.
public getAttributes ( ) : array
리턴 array The context data

getSerial() 공개 메소드

Returns the serial of the instance.
public getSerial ( ) : string
리턴 string The serial

hasAttribute() 공개 메소드

Queries whether the attribute already exists or not.
public hasAttribute ( string $key ) : boolean
$key string The attribute to query for
리턴 boolean TRUE if the attribute already exists, else FALSE

maskKey() 공개 메소드

Creates a unique identifier to append attributes to the internal property table.
public maskKey ( string $key ) : string
$key string The key used to create a unique identifier
리턴 string The unique identifier

removeAttribute() 공개 메소드

Removes the attribue from the application.
public removeAttribute ( string $key ) : void
$key string The attribute to remove
리턴 void

setAttribute() 공개 메소드

Sets the passed key/value pair in the directory.
public setAttribute ( string $key, mixed $value ) : void
$key string The attributes key
$value mixed Tha attribute to be bound
리턴 void

unmaskKey() 공개 메소드

Umasks the unique key.
public unmaskKey ( string $key ) : string
$key string The unique key to unmask
리턴 string The unmasked key