Class waArrayObject
Implements smart multidimensional key => value storage that can be accessed both by array access and by field acces interfaces, including modification of deep layers.
$a = new waArrayObject();
// something simple... $a->q = 1; echo $a['q']; // == 1
// tricky $a['w']['e']['r']['t'] = 2; echo $a->w['e']->r->t; // == 2
// more magic $a->e = array('r' => array('t' => 3)); echo $a->e->r->t; // == 3
- waArrayObject implements ArrayAccess, IteratorAggregate, Countable
Direct known subclasses
waArrayObjectDiffIndirect known subclasses
waDbRecord
public static
mixed
|
|
public
|
|
public
mixed
|
|
public
integer
|
|
public
array
|
|
public
mixed
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
&
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
boolean
|
|
protected
mixed
|
#
removeStubs( mixed $key = null )
Ensure that given key in rec_data is not a stub; when called with no parameters, removes all stubs. |
public
|
protected
array
|
$rec_data | array() |
#
Data storage for array/field access. All native arrays and stdObjects are replaced with waArrayObjects before saving into this |
protected
boolean
|
$stub | false |
#
Indicates whether this object was created as a stub or intentionally. E.g.
after |