Set an item in the array

@param   int     The offset of the item
@param   mixed   The item's value
@return  object  AnObjectArray
770301
public function offsetSet($offset, $value)
    {
        if ($this->_cache) {
            apcu_store($this->_cache_prefix.'-'.$offset, $value);
        }

        parent::offsetSet($offset, $value);
    }
399271
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->_integerToStringKey($this->_integerKeysCounter++);
        }

        $this->_putData($offset, $value);
        return $this;
    }
1364152
public function offsetSet ( $offset , $value ){
            if($value instanceof \NonDB\Data){
                $value = $value->getArray();
            }
            $this->data[$offset] = $value;
        }
265987
public function offsetSet($offset, $value)
    {
        $this->assertElementIsOfType($value);
        $this->collection[$offset] = $value;
    }
444083
public function set(string $key, $value = null)
    {
        return Arr::set($this->items, $key, \value($value));
    }
1129994
public function setItems(array $value) {
    if (isset($value[0]) &&
        is_object($value[0]) &&
        !$value[0] instanceof GalleryItem
    ) {
      $this->triggerError('Object not of type GalleryItem');
    }
    else {
      $this->items = $value;
    }
    return $this;
  }
902251
public function offsetSet($offset, $value) {
    if (!is_a($value, 'PodioObject')) {
      throw new PodioDataIntegrityError("Objects in PodioCollection must be of class PodioObject");
    }

    // If the collection has a relationship with a parent, add it to the item as well.
    $relationship = $this->relationship();
    if ($relationship) {
      $value->add_relationship($relationship['instance'], $relationship['property']);
    }

    if (is_null($offset)) {
      $this->__items[] = $value;
    }
    else {
      $this->__items[$offset] = $value;
    }
  }
48314
public function set($key, $value = null)
    {
        $keys = is_array($key) ? $key : [$key => $value];

        foreach ($keys as $key => $value) {
            Arr::set($this->items, $key, $value);
        }
    }
436787
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->_args[count($this->_args)] = $value;
        } else {
            if (is_int($offset)) {
                $this->_args[$offset] = $value;
            } else {
                throw new \Exception('Cannot set offset \''.$offset.'\' of IndexedArray.');
            }
        }
    }
156163
public function offsetSet($offset, $value)
    {
        Argument::i()
            //argument 1 must be scalar, null or bool
            ->test(1, 'scalar', 'null', 'bool')
            //argument 2 must be an array or Eden\Collection\Model
            ->test(2, 'array', $this->model);

        if (is_array($value)) {
            //make it a model
            $model = $this->model;
            $value = $this->$model($value);
        }

        if (is_null($offset)) {
            $this->list[] = $value;
        } else {
            $this->list[$offset] = $value;
        }
    }
103735
public function setFromArray(array $row = [])
    {
        parent::setFromArray($row);
        try {
            $data = $this->data ? json_decode($this->data, true) : [];
        } catch (\Exception $e) {
            $data = [];
        }
        $this->data = (new DataObject)->setParams($data);
        return $this;
    }
312481
protected function setValue($key, $value, array &$array = array())
    {
        $keys = $this->parseKey($key, $this->separator);
        $pointer = &$array;

        while (count($keys) > 0) {
            $key = array_shift($keys);
            $pointer[$key] = (isset($pointer[$key]) ? $pointer[$key] : array());
            $pointer = &$pointer[$key];
        }

        $pointer = $value;
        return $array;
    }
755971
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->data[] = $value;
        } else {
            $this->data[$offset] = $value;
        }

        $this->keys = array_keys($this->data);
    }
1008695
public function offsetSet($offset, $value)
    {
        //argument 1 must be scalar, null or bool
        Argument::i()->test(1, 'scalar', 'null', 'bool');

        if (!is_null($offset)) {
            if (in_array($offset, $this->setBoolKeys)) {
                $method = array_search($offset, $this->setBoolKeys);
                $this->call('set'.$method, array($value));
            }

            if (in_array($offset, $this->setIntegerKeys)) {
                $method = array_search($offset, $this->setIntegerKeys);
                $this->call('set'.$method, array($value));
            }

            if (in_array($offset, $this->setStringKeys)) {
                $method = array_search($offset, $this->setStringKeys);
                $this->call('set'.$method, array($value));
            }

            if (in_array($offset, $this->setArrayKeys)) {
                $method = array_search($offset, $this->setArrayKeys);
                $this->call('set'.$method, array($value));
            }

            if (in_array($offset, $this->setFileKeys)) {
                $method = array_search($offset, $this->setFileKeys);
                $this->call('set'.$method, array($value));
            }

            if (in_array($offset, $this->setCallbackKeys)) {
                $method = array_search($offset, $this->setCallbackKeys);
                $this->call('set'.$method, array($value));
            }
        }
    }
1098379
public function offsetSet($index, $value)
    {
        if (is_array($value)) {
            $this->{$index} = new self($value);
        } else {
            $this->{$index} = $value;
        }
    }
1000901
function Set(arr) {
  Object.defineProperty(this, '__arr__', {value: []});

  if (arr) {
    arr.forEach(function (el) { this.push(el); }, this);
  }
}
136741
public function offsetSet($name, $value)
    {
        if (is_array($value)) {
            $value = new self($value, $this->dataobject);
        }

        if ($name === null) {
            $this->data[] = $value;
        } else {
            $this->data[$name] = $value;
        }
    }