CanDo

Extends Registry

A simple state holder class. This class acts for transition from CMSObject to Registry and should not be used directly. Instead of, use the Registry class.

deprecated
since

5.0.0

deprecated

7.0 Use the Registry directly

package

Joomla CMS

Methods

__construct

Constructor

__construct( data = null) : 
since

5.0.0

Arguments

data

mixedThe data to bind to the new Registry object.

Response

mixed

__get

Proxy for internal data access for the given name.

__get( name) : 
deprecated
since

5.0.0

deprecated

5.0.0 will be removed in 7.0

Arguments

name

stringThe name of the element

Response

mixedThe value of the element if set, null otherwise

__isset

Proxy for internal data check for a variable with the given key.

__isset( name) : 
deprecated
since

5.0.0

deprecated

5.0.0 will be removed in 7.0

Arguments

name

stringThe name of the element

Response

boolReturns if the internal data storage contains a key with the given

__set

Proxy for internal data storage for the given name and value.

__set( name,  value) : 
deprecated
since

5.0.0

deprecated

5.0.0 will be removed in 7.0

Arguments

name

stringThe name of the element

value

stringThe value

Response

void

get

Get a registry value.

get( path,  default = null) : 
since

5.0.0

Arguments

path

stringRegistry path (e.g. joomla.content.showauthor)

default

mixedOptional default value, returned if the internal value is null.

Response

mixedValue of entry or null

getProperties

Returns an associative array of object properties.

getProperties() : mixed||string|int
deprecated
since

5.0.0

deprecated

7.0 Use toArray instead

Response

array<string|int, mixed>The data array