offsetGet() public method

{@inheritDoc}
public offsetGet ( $offset )
 public function offsetGet($offset)
 {
     if (null === $this->entries) {
         $this->__load___();
     }
     return $this->entries->offsetGet($offset);
 }
 /**
  * Tests IdentityWrapper->offsetGet()
  */
 public function testOffsetGet()
 {
     foreach ($this->entries as $key => $entry) {
         $this->assertSame($entry, $this->identityWrapper->offsetGet($key));
         $this->assertNull($this->wrappedCollection->offsetGet($key));
     }
     $this->assertNull($this->identityWrapper->offsetGet('non-existent'));
 }
 /** {@inheritDoc} */
 public function offsetGet($offset)
 {
     $this->initialize();
     return $this->collection->offsetGet($offset);
 }
Example #4
0
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Offset to retrieve
  * @link http://php.net/manual/en/arrayaccess.offsetget.php
  *
  * @param mixed $offset <p>
  *                      The offset to retrieve.
  *                      </p>
  *
  * @return mixed Can return all value types.
  */
 public function offsetGet($offset)
 {
     return $this->collection->offsetGet($offset);
 }
 public function offsetGet($offset)
 {
     return $this->fields->offsetGet($offset);
 }