コード例 #1
0
 public function cancel()
 {
     $this->status = "cancelled";
     $invitations = VCInvitation::model()->findAllByAttributes(array("videoconference_id" => $this->id));
     foreach ($invitations as $inv) {
         $invitee = User::model()->findByAttributes(array("id" => $inv->invitee_id));
         VCInvitation::sendCancelNotification($this, $invitee->fname . " " . $invitee->lname, $invitee->email);
     }
     return $this->save();
 }