Ignore:
Timestamp:
01/13/12 10:28:30 (13 years ago)
Author:
jkraaijeveld
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/classes/models/SessionInstance.php

    r217 r229  
    7979                        $result = ResultSet::get(array("uid" => $this->resultset));
    8080                        if(!isset($result[0]))
    81                                 return true;
    82                         $newResultSets[] = $result[0];
     81                                return false;
     82                        $this->resultset = $result[0];
    8383                }
    8484                return true;
     
    185185                                predicates:endtime ?endtime ;
    186186                                predicates:of_session ?of_session ;
     187                                predicates:has_resultset ?has_resultset ;
    187188                                ' . ResearchToolObject::createArguments($arguments) . '
    188189        }';
     
    196197                                //Create a SessionInstance object out of every result. Get all the required fields as well.
    197198                                $notes = SessionInstance::getNotes($model, $result['?uid']->label);
    198                                 $resultset = SessionInstance::getResultSet($model, $result['?uid']->label);
     199                                $resultset = isset($result['?has_resultset']) ? $result['?has_resultset']->label : null;
    199200                                $starttime = new DateTime();
    200201                                $starttime->setTimestamp(intval($result['?starttime']->label));
     
    234235        }
    235236
    236         /**
    237          * function getResultSet($uid)
    238          * param type $uid : The SessionInstance uid for which the ResultSet should be gotten.
    239          */
    240         public static function getResultSet($model, $uid)
    241         {
    242                 //TODO: Implement when ResultSet is in.
    243                 return null;
    244         }
    245 
    246 
    247237
    248238}
Note: See TracChangeset for help on using the changeset viewer.