예제 #1
0
 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);
 }
예제 #2
0
 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]);
             }
         }
     }
 }