function display($tpl = null) { $this->items = $this->get('Items'); $this->items = checkHotels(JFactory::getUser()->id, $this->items); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); JHotelReservationHelper::addSubmenu('hotels'); $this->statuses = JHotelReservationHelper::getStatuses(); $this->accomodationTypes = $this->get('AccommodationTypes'); $this->addToolbar(count($this->items)); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->item = $this->get('Item'); $this->state = $this->get('State'); $this->statuses = JHotelReservationHelper::getStatuses(); $this->modes = JHotelReservationHelper::getModes(); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->statuses = JHotelReservationHelper::getStatuses(); JHotelReservationHelper::addSubmenu('paymentprocessors'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $layout = JRequest::getVar("layout", null); if (isset($layout)) { $tpl = $layout; } JHotelReservationHelper::addSubmenu('extraoptions'); $hotels = $this->get('Hotels'); $this->hotels = checkHotels(JFactory::getUser()->id, $hotels); $this->statuses = JHotelReservationHelper::getStatuses(); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->hoteltranslationsModel = new JHotelReservationModelhoteltranslations(); $this->addToolbar(); parent::display($tpl); }