PHP Трейт AppserverIo\Appserver\Core\Traits\ThreadedContextTrait

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

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

Метод Описание
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