Пример #1
0
 /**
  * Gets the item at index $index
  * @param int $index
  * @return DataMapper
  */
 function get($index)
 {
     // clear to ensure that the item is not duplicating data
     $this->object->clear();
     // set the current values on the object
     $this->parent->_to_object($this->object, $this->result[$index]);
     return $this->object;
 }