This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".  
Status: 2023-12-27

Registry


set

saves a key/value pair to registry storage.

set(string $sIndex = '', mixed $mValue = null) : void

Example

Registry::set('foo', 'bar');

isRegistered

Returns:

  • true if $sIndex exists as key in the registry
  • false if $sIndex was not found in the registry
isRegistered(string $sIndex = '') : bool

Example

$bIsRegistered = Registry::isRegistered('foo');
// type: boolean
true

get

gets (reads) a value by its key.

get(string $sIndex = '') : mixed

Example

$sResult = Registry::get('foo');
// type: string
bar

take

gets a value by its key and deletes the entry afterwards.

take(string $sIndex = '') : mixed

Example

$sResult = Registry::take('foo');
// type: string
bar

delete

deletes a value in registry.

delete(string $sIndex = '') : bool

Example

$bDeleteSuccess = Registry::delete('foo');
// type: boolean
true