Ejemplo n.º 1
0
 public function testReserveroomdetails()
 {
     $data['intRoomId'] = '2';
     $data['vchRoomname'] = 'Room 2';
     $room = new Default_Model_Room();
     $this->assertContains($data, $room->reserveroomdetails());
 }
Ejemplo n.º 2
0
 /** Displays the homepage with the list of rooms
  * 
  * @return details of the room 
  */
 public function homepageAction()
 {
     $session = new Zend_Session_Namespace('user');
     if ($session->user_id) {
         $room = new Default_Model_Room();
         $this->view->entries = $room->getroomdetails();
     } else {
         $this->_helper->redirector->gotoRoute(array('controller' => ''));
     }
 }
Ejemplo n.º 3
0
 /** Displays the details of the rooms available for reservation
  * 
  * @return details of the room available.
  * 
  */
 public function indexAction()
 {
     $this->view->entries = Default_Model_Room::reserveroomdetails();
 }