예제 #1
0
파일: Association.php 프로젝트: Konro1/pms
 /**
  * Use the association to get the item from the collection
  * @param  integer $offset
  * @return mixed
  */
 public function offsetGet($offset)
 {
     $item = parent::offsetGet($offset);
     if ($item instanceof Jam_Model) {
         $this->association()->item_get($this->parent(), $item);
     }
     return $item;
 }