Пример #1
0
 /**
  * Internal function to return a TimeBlock object from a row.
  * @param $row array
  * @return TimeBlock
  */
 function &_returnTimeBlockFromRow(&$row)
 {
     $timeBlock = new TimeBlock();
     $timeBlock->setId($row['time_block_id']);
     $timeBlock->setSchedConfId($row['sched_conf_id']);
     $timeBlock->setStartTime($this->datetimeFromDB($row['start_time']));
     $timeBlock->setEndTime($this->datetimeFromDB($row['end_time']));
     $timeBlock->setAssignedColour($row['assigned_colour']);
     $timeBlock->setUnassignedColour($row['unassigned_colour']);
     $this->getDataObjectSettings('time_block_settings', 'time_block_id', $row['time_block_id'], $timeBlock);
     return $timeBlock;
 }