public function __construct(scheduler_slot $slot)
 {
     parent::__construct();
     $this->data = new stdClass();
     $this->set_parent($slot);
     $this->data->slotid = $slot->get_id();
     $this->data->attended = 0;
     $this->data->appointmentnoteformat = FORMAT_HTML;
 }
 public function __construct(scheduler_instance $scheduler)
 {
     parent::__construct();
     $this->data = new stdClass();
     $this->data->id = 0;
     $this->set_parent($scheduler);
     $this->data->schedulerid = $scheduler->get_id();
     $this->appointments = new mvc_child_list($this, 'scheduler_appointment', 'slotid', new scheduler_appointment_factory($this));
 }