require 'client_seminar.php'; echo "<h2>通常セミナーテスト</h2>"; echo "<BR>"; $saji = new User(); $saji->setName("佐治", "和弘"); $saji->setEmail("*****@*****.**"); $iwasaki = new User(); $iwasaki->setName("岩崎", "拓海"); $iwasaki->setEmail("*****@*****.**"); $hayashi = new User(); $hayashi->setName("早矢仕", "玄"); $hayashi->setEmail("*****@*****.**"); $object_seminar = new Seminar(); $object_seminar->setTitle("オブジェクト指向セミナー"); echo $object_seminar->getTitle() . '<BR>'; $object_seminar->attendAccept($iwasaki); $object_seminar->attendAccept($saji); $object_seminar->attendAccept($hayashi); $object_seminar->getAttendList(); $object_seminar->cancelAccept($saji); $object_seminar->getCancelList(); $object_seminar->getAttendList(); echo "<BR><BR><hr>"; echo "<h2>クライアントセミナーテスト</h2>"; echo "<BR>"; $client_seminar = new ClientSeminar(); $google = new Client(); $google->setName("Google"); $google->setEmail("*****@*****.**"); $client_seminar->setClient($google); $client_seminar->setTitle("Google説明会");
public function attendAccept($user) { parent::attendAccept($user); $message = $this->getTitle() . "に登録しました" . "<BR>"; $this->sendMailToClient($this->client->getEmail(), $user->getName(), $message); }