class ActiveData implements ArrayAccess, IteratorAggregate

Class ActiveData

Methods

static ActiveData
create(array $data = [], bool|false $recursive = false)

No description

__construct(array $data = [], bool $recursive = false)

ActiveData constructor.

$this
load(array $data, bool $recursive = false)

初始化,载入数据

isStrict()

No description

all(bool $toArray = false)

No description

ActiveData|null
get(string $name)

以点连接 快速获取子级节点的值

getIterator()

Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach

boolean
offsetExists(mixed $offset)

Checks whether an offset exists in the iterator.

mixed
offsetGet(mixed $offset)

Gets an offset in the iterator.

void
offsetSet(mixed $offset, mixed $value)

Sets an offset in the iterator.

void
offsetUnset(mixed $offset)

Unset an offset in the iterator.

__isset($name)

No description

__set($name, $value)

No description

__get($name)

No description

Details

at line 24
static ActiveData create(array $data = [], bool|false $recursive = false)

Parameters

array $data
bool|false $recursive

Return Value

ActiveData

at line 34
__construct(array $data = [], bool $recursive = false)

ActiveData constructor.

Parameters

array $data
bool $recursive

at line 47
$this load(array $data, bool $recursive = false)

初始化,载入数据

Parameters

array $data
bool $recursive

Return Value

$this

at line 62
isStrict()

at line 71
array|ArrayIterator all(bool $toArray = false)

Parameters

bool $toArray

Return Value

array|ArrayIterator

at line 91
ActiveData|null get(string $name)

以点连接 快速获取子级节点的值

Parameters

string $name

Return Value

ActiveData|null

at line 121
ArrayIterator getIterator()

Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach

Return Value

ArrayIterator

at line 131
boolean offsetExists(mixed $offset)

Checks whether an offset exists in the iterator.

Parameters

mixed $offset The array offset.

Return Value

boolean True if the offset exists, false otherwise.

at line 141
mixed offsetGet(mixed $offset)

Gets an offset in the iterator.

Parameters

mixed $offset The array offset.

Return Value

mixed The array value if it exists, null otherwise.

at line 152
void offsetSet(mixed $offset, mixed $value)

Sets an offset in the iterator.

Parameters

mixed $offset The array offset.
mixed $value The array value.

Return Value

void

at line 162
void offsetUnset(mixed $offset)

Unset an offset in the iterator.

Parameters

mixed $offset The array offset.

Return Value

void

at line 167
__isset($name)

Parameters

$name

at line 172
__set($name, $value)

Parameters

$name
$value

at line 176
__get($name)

Parameters

$name