當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Booking::get_room_no方法代碼示例

本文整理匯總了PHP中Booking::get_room_no方法的典型用法代碼示例。如果您正苦於以下問題:PHP Booking::get_room_no方法的具體用法?PHP Booking::get_room_no怎麽用?PHP Booking::get_room_no使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Booking的用法示例。


在下文中一共展示了Booking::get_room_no方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testBookingModule

 function testBookingModule()
 {
     $today = date('y-m-d');
     $b = new Booking($today, "", "Meghan2075551234", "pending", "", "Tiny", array("Meghan:mother", "Jean:father", "Teeny:sibling"), array(), "", "", "Millie2073631234", "Maine Med", "SCU", "00000000000", "\$10 per night", "", "", "", "new");
     $this->assertTrue($b->get_id() == $today . "Meghan2075551234");
     $this->assertEqual($b->get_date_submitted(), $today);
     $this->assertTrue($b->get_date_in() == "");
     $this->assertEqual($b->get_guest_id(), "Meghan2075551234");
     $this->assertEqual($b->get_status(), "pending");
     $this->assertEqual($b->get_room_no(), "");
     $this->assertEqual($b->get_patient(), "Tiny");
     $occ = $b->get_occupants();
     $this->assertTrue(in_array("Jean:father", $occ));
     $this->assertEqual($b->get_linked_room(), "");
     $this->assertEqual($b->get_date_out(), "");
     $this->assertEqual($b->get_referred_by(), "Millie2073631234");
     $this->assertEqual($b->get_hospital(), "Maine Med");
     $this->assertEqual($b->get_department(), "SCU");
     $this->assertEqual($b->get_payment_arrangement(), "\$10 per night");
     $this->assertEqual($b->overnight_use(), "");
     $this->assertEqual($b->day_use(), "");
     $this->assertEqual($b->get_mgr_notes(), "");
     $this->assertEqual($b->get_flag(), "new");
     for ($i = 0; $i < 11; $i++) {
         $this->assertEqual($b->get_health_question($i), "0");
     }
     $b->add_occupant("Jordan", "brother");
     $this->assertEqual(sizeof($b->get_occupants()), 4);
     $b->remove_occupant("Jordan");
     $this->assertEqual(sizeof($b->get_occupants()), 3);
     echo "testBooking complete";
 }
開發者ID:kumarsivarajan,項目名稱:rmh-roomreservation-maker,代碼行數:32,代碼來源:testBooking.php


注:本文中的Booking::get_room_no方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。