public function offsetSet($index, $new_val) { if ($this->deepSelectorOption) { $new_array = \UArray::setDeepSelector($this->getArrayCopy(), $index, $new_val); $this->exchangeArray($new_array); } return parent::offsetSet($index, $new_val); }
protected function rewriteDeepSelectors(&$values) { if (is_array($values)) { foreach ($values as $key => &$value) { $this->rewriteDeepSelectors($value); if (\Pixel418\Iniliq::isDeepSelector($key)) { $values = \UArray::setDeepSelector($values, $key, $value); unset($values[$key]); } } } }