/** * UnConfirm Reservation * * Sets the selected reservation to un-confirmed. When a reservation * is confirmed for selected units it can be unconfirmed with this method * allowed other reservations to be accepted on the same selected dates. * * @param request ids an array containing selected reservation id's * @return json boolean response in json format (true = success) */ public function unconfirmJsonAction() { $ids = $this->_getParam('ids', array()); $model = new RM_Reservations(); foreach ($ids as $id) { $reservation = $model->find($id)->current(); if ($reservation == null) { continue; } $model->unconfirm($reservation); } return array('data' => array('success' => true)); }