HumHub Documentation (unofficial)

AbstractItem
in package
implements ArrayAccess, Countable

AbstractYes

This class provides a base implementation for managing schema items like objectClass and attributeType.

Tags
template-implements

ArrayAccess<array-key, mixed>

Table of Contents

Interfaces

ArrayAccess
Countable

Properties

$data  : array<string|int, mixed>
The underlying data

Methods

__construct()  : mixed
__get()  : mixed
Gets a specific attribute from this item
__isset()  : bool
Checks whether a specific attribute exists.
count()  : mixed
getData()  : array<string|int, mixed>
Gets the data
offsetExists()  : mixed
offsetGet()  : mixed
offsetSet()  : mixed
offsetUnset()  : mixed
setData()  : AbstractItem
Sets the data

Properties

$data

The underlying data

protected array<string|int, mixed> $data

Methods

__construct()

public __construct(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

__get()

Gets a specific attribute from this item

public __get(string $name) : mixed
Parameters
$name : string

__isset()

Checks whether a specific attribute exists.

public __isset(string $name) : bool
Parameters
$name : string
Return values
bool

count()

public count() : mixed
Tags
inheritDoc

Returns the number of attributes.

getData()

Gets the data

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

offsetExists()

public offsetExists(mixed $name) : mixed
Parameters
$name : mixed
Tags
inheritDoc

Checks whether a specific attribute exists.

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Tags
inheritDoc

Gets a specific attribute from this item

setData()

Sets the data

public setData(array<string|int, mixed> $data) : AbstractItem
Parameters
$data : array<string|int, mixed>
Return values
AbstractItem

Provides a fluid interface


        
On this page

Search results