Saves the serialized value to the the $cachePath with the given name
@param string $offset ID of the cache key (filename)
@param string $value Value to be serialized and saved
166934
public function offsetSet($offset, $value)
    {
        /*
        $filePath = $this->getCachePath() . $offset;
        if($this->offsetExists($filePath)) {
            unlink($filePath);
        }
        file_put_contents($filePath, serialize($value));
        */
        $stmt = $this->db->prepare('INSERT OR REPLACE INTO cache (key, value) VALUES (:key, :value)');
        $stmt->bindValue(':key', $offset);
        $stmt->bindValue(':value', serialize($value), SQLITE3_BLOB);
        $stmt->execute();
    }
13916
public function offsetSet($offset, $value)
    {
        $canonical = $this->canonical($offset);
        $this->headers[$canonical] = $value;
        $this->map[$canonical] = $offset;
    }
539285
public function offsetSet($offset, $value) {
        parent::offsetSet($offset, $value);
        $this->initChild($offset, $value, TRUE);
    }
213469
public function offsetSet($offset, $value)
    {
        if (isset($this->config[$offset])) {
            $this->config[$offset] = $value;
        }
    }
376324
public function offsetSet( $offset, $value )
	{
		$offset = self::normalizeKey($offset);
		if( $offset !== false )
		{
			$this->items[$offset] = $value;
		}
	}
681000
public function offsetSet($offset, $value) {
        if (is_null($offset)) {
            $this->values[] = $value;
        } else {
            $this->values[$offset] = $value;
        }
        $this->tracker->logAddition($value);
    }
62083
public function offsetSet ($offset, $value) {
		if (static::Length($value) !== 1) {
			throw new \Exception('1文字しか設定できません。');
		}
		$this->_string = $this->offsetBefore($offset) . $value . $this->offsetAfter($offset + 1);
		$this->_length++;
	}
497185
public function offsetSet($offset, $value)
    {
        if(is_null($offset)) {
            $offset = $this->index;
            $this->index++;
        }
        $this->indexItem = array_push($this->keys, $offset);
        $this->{$offset} = $value;
    }
367790
public function offsetSet($offset, $value)
    {
        $this->fillOnce();
        $this->_attributes[$offset] = $value;
        $this->attributesChanged();
    }
1013975
public function offsetSet ($offset, $value) {
		$data = & $_SESSION[$this->__name];
        if ($offset === NULL) {
            $data[] = $value;
        } else {
            $data[$offset] = $value;
        }
    }
803500
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->lines[] = $value;
        } else {
            $index = $this->findLine($offset);

            if ($index >= 0) {
                $this->lines[$index] = "{$offset}={$value}";
            } else {
                $this->lines[] = "{$offset}={$value}";
            }
        }
    }
273987
public function offsetSet($offset, $value)
    {
        $this->loadData($offset);
        $this->set($offset, $value);
    }
339200
public function offsetSet($offset, $value) : void
    {
        $this->initialize();
        $this->collection->offsetSet($offset, $value);
    }
1090933
public function offsetSet($offset, $value)
	{
		// just to make sure the listKey exists
		$this->getListByKey();
		if (is_null($offset))
		{
			$this->info[$this->listKey][] = $value;
		}
		else
		{
			$this->info[$this->listKey][$offset] = $value;
		}
	}
574591
public function offsetSet($offset, $value) {
		$this->getElements();
        $this->elements[$this->getPosition($offset)] = $value;
    }
891806
public function offsetSet($offset, $value)
    {
        if (isset($this->_modelData[$offset])) {
             $this->_modelData[$offset] = $value;
        } else {
            $fields = X::app()->db->getFields(self::tableName());
            foreach ($fields as $v) {
                if ($v == $offset){
                    $this->_modelData[$offset] = $value;
                }
            }
        }
    }
1296289
public function offsetSet($offset, $value)
    {
        if ($this->offsetExists($offset)) {
            $method = 'set'.static::formatOffset($offset);
            $this->{$method}($value);
        }
    }