offsetGet() public method

{@inheritDoc}
public offsetGet ( $offset )
 public function offsetGet($offset)
 {
     if (null === $this->entries) {
         $this->__load___();
     }
     return $this->entries->offsetGet($offset);
 }
Exemplo n.º 2
0
 /**
  * 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'));
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 public function offsetGet($offset)
 {
     $this->initialize();
     return $this->collection->offsetGet($offset);
 }
Exemplo n.º 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);
 }