ActiveData
class ActiveData implements ArrayAccess, IteratorAggregate
Class ActiveData
Methods
No description
ActiveData constructor.
初始化,载入数据
No description
No description
以点连接 快速获取子级节点的值
Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach
Checks whether an offset exists in the iterator.
Gets an offset in the iterator.
Sets an offset in the iterator.
Unset an offset in the iterator.
No description
No description
No description
Details
at line 24
static ActiveData
create(array $data = [], bool|false $recursive = false)
at line 34
__construct(array $data = [], bool $recursive = false)
ActiveData constructor.
at line 47
$this
load(array $data, bool $recursive = false)
初始化,载入数据
at line 62
isStrict()
at line 71
array|ArrayIterator
all(bool $toArray = false)
at line 91
ActiveData|null
get(string $name)
以点连接 快速获取子级节点的值
at line 121
ArrayIterator
getIterator()
Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach
at line 131
boolean
offsetExists(mixed $offset)
Checks whether an offset exists in the iterator.
at line 141
mixed
offsetGet(mixed $offset)
Gets an offset in the iterator.
at line 152
void
offsetSet(mixed $offset, mixed $value)
Sets an offset in the iterator.
at line 162
void
offsetUnset(mixed $offset)
Unset an offset in the iterator.