class ArrayInsertionUtil

Methods

static 
insert($array, array $parts, mixed $values)

If the values to be inserted contain a key _parent_id they will only be inserted if the parent node ID matches their ID

Details

at line 56
static insert($array, array $parts, mixed $values)

If the values to be inserted contain a key _parent_id they will only be inserted if the parent node ID matches their ID

Parameters

$array The array to insert the value in
array $parts Path to insertion point with structure: [[ name => is_multiple ], ..]
mixed $values The value to be inserted