PHP Class Sulu\Component\SmartContent\ArrayAccessItem

Inheritance: implements Sulu\Component\SmartContent\ResourceItemInterface, implements ArrayAccess, implements JsonSerializable
Datei anzeigen Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( mixed $id, array $data, object $resource )
__get ( $name )
getId ( )
getResource ( )
jsonSerialize ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )

Protected Methods

Method Description
exists ( string $key ) : boolean Returns TRUE if data array contains given key.
get ( string $key ) : mixed Returns value with given key.

Method Details

__construct() public method

public __construct ( mixed $id, array $data, object $resource )
$id mixed
$data array
$resource object

__get() public method

public __get ( $name )

exists() protected method

Returns TRUE if data array contains given key.
protected exists ( string $key ) : boolean
$key string
return boolean

get() protected method

Returns value with given key.
protected get ( string $key ) : mixed
$key string
return mixed

getId() public method

public getId ( )

getResource() public method

public getResource ( )

jsonSerialize() public method

public jsonSerialize ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )