Пример #1
0
 /**
  * Internal function to return an meeting object from a row. Simplified
  * not to include object settings.
  * @param $row array
  * @return Meeting
  */
 function &_returnMeetingFromRow(&$row)
 {
     $meeting = new Meeting();
     if (isset($row['meeting_id'])) {
         $meeting->setId($row['meeting_id']);
     }
     if (isset($row['meeting_date'])) {
         $meeting->setDate($row['meeting_date']);
     }
     if (isset($row['meeting_length'])) {
         $meeting->setLength($row['meeting_length']);
     }
     if (isset($row['location'])) {
         $meeting->setLocation($row['location']);
     }
     if (isset($row['investigator'])) {
         $meeting->setInvestigator($row['investigator']);
     }
     if (isset($row['section_id'])) {
         $meeting->setUploader($row['section_id']);
     }
     if (isset($row['minutes_status'])) {
         $meeting->setMinutesStatus($row['minutes_status']);
     }
     if (isset($row['status'])) {
         $meeting->setStatus($row['status']);
     }
     $meeting->setMeetingAttendances($this->meetingAttendanceDao->getMeetingAttendancesByMeetingId($row['meeting_id']));
     $meeting->setMeetingSectionDecisions($this->meetingSectionDecisionDao->getMeetingSectionDecisionsByMeetingId($row['meeting_id']));
     HookRegistry::call('MeetingDAO::_returnMeetingFromRow', array(&$meeting, &$row));
     return $meeting;
 }