Example #1
0
 public function add_slot(scheduler_slot $slotmodel, scheduler_student_list $students, $editable)
 {
     $slot = new stdClass();
     $slot->slotid = $slotmodel->id;
     $slot->starttime = $slotmodel->starttime;
     $slot->endtime = $slotmodel->endtime;
     $slot->teacher = $slotmodel->get_teacher();
     $slot->students = $students;
     $slot->editable = $editable;
     $slot->isattended = $slotmodel->is_attended();
     $slot->isappointed = $slotmodel->get_appointment_count();
     $slot->exclusivity = $slotmodel->exclusivity;
     $this->slots[] = $slot;
 }