Lines Matching refs:offset
193 /** @return whether a certain offset exists in the DLL
195 * @param $offset The offset
196 * @throw OutOfRangeException If the offset is either invalid or out of
199 public function offsetExists($offset)
201 if (!is_numeric($offset)) {
204 return array_key_exists($offset, $this->_llist);
208 /** @return the data at a certain offset in the DLL
210 * @param $offset The offset
211 * @throw OutOfRangeException If the offset is either invalid or out of
214 public function offsetGet($offset)
217 $realOffset = count($this->_llist)-$offset;
219 $realOffset = $offset;
222 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) {
229 /** Defines the data at a certain offset in the DLL
231 * @param $offset The offset
233 * @throw OutOfRangeException If the offset is either invalid or out of
236 public function offsetSet($offset, $value)
238 if ($offset === null) {
243 $realOffset = count($this->_llist)-$offset;
245 $realOffset = $offset;
248 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) {
255 /** Unsets the element at a certain offset in the DLL
257 * @param $offset The offset
258 * @throw OutOfRangeException If the offset is either invalid or out of
261 public function offsetUnset($offset)
264 $realOffset = count($this->_llist)-$offset;
266 $realOffset = $offset;
269 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) {