HumHub Documentation (unofficial)

MetadataBag
in package
implements ArrayAccess, IteratorAggregate, Countable

The container of the data extracted from metadata.

Table of Contents

Interfaces

ArrayAccess
IteratorAggregate
Countable

Properties

$data  : array<string|int, mixed>

Methods

__construct()  : mixed
count()  : int
{@inheritdoc}
get()  : mixed
Returns the metadata key, default value if it does not exist.
getIterator()  : ArrayIterator
{@inheritdoc}
offsetExists()  : bool
{@inheritdoc}
offsetGet()  : mixed
{@inheritdoc}
offsetSet()  : void
{@inheritdoc}
offsetUnset()  : void
{@inheritdoc}
toArray()  : array<string|int, mixed>
Returns metadata as an associative array.

Properties

Methods

__construct()

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

get()

Returns the metadata key, default value if it does not exist.

public get(string $key[, mixed|null $default = null ]) : mixed
Parameters
$key : string
$default : mixed|null = null

getIterator()

{@inheritdoc}

public getIterator() : ArrayIterator
Tags
see
IteratorAggregate::getIterator()
Attributes
#[ReturnTypeWillChange]
Return values
ArrayIterator

offsetExists()

{@inheritdoc}

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Tags
see
ArrayAccess::offsetExists()
Attributes
#[ReturnTypeWillChange]
Return values
bool

offsetGet()

{@inheritdoc}

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Tags
see
ArrayAccess::offsetGet()
Attributes
#[ReturnTypeWillChange]

offsetSet()

{@inheritdoc}

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Tags
see
ArrayAccess::offsetSet()
Attributes
#[ReturnTypeWillChange]

offsetUnset()

{@inheritdoc}

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Tags
see
ArrayAccess::offsetUnset()
Attributes
#[ReturnTypeWillChange]

toArray()

Returns metadata as an associative array.

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

        
On this page

Search results