lithium\data\collection\MultiKeyRecordSet::offsetUnset()

public method

Assigns a value to the specified offset.

Parameters

  • integer $offset

    The offset to assign the value to.

  • mixed $data

    The value to set.

Returns

mixed

The value which was set.

Source

	public function offsetUnset($offset) {
		$offset = (!$offset || $offset === true) ? 0 : $offset;
		$this->offsetGet($offset);
		unset($this->_index[$index = array_search($offset, $this->_index)]);
		prev($this->_data);
		if (key($this->_data) === null) {
			$this->rewind();
		}
		unset($this->_data[$index]);
	}