/** * displayProcessing */ private function displayProcessing() { // load config $this->config = CHClient::getConfig(); // submit confirmation method $this->submit_confirm = false; if ($this->app->getUserState('chclient.submit_confirm', false)) { $this->submit_confirm = true; $this->app->setUserState('chclient.submit_confirm', null); $this->loadConfirmationMethod(); } // load needed data $this->data->special_conditions = false; $this->data->worst_conditions = false; $conditions_array = []; foreach ($this->booking->rooms as $room) { $conditions_array[] = $room->rate->conditions; $room->special_conditions = false; $room->free_cancellation = CHClient::freeCancellation($room->rate->conditions, $room->rate->deadline); $room->non_refundable = in_array($room->rate->conditions, ['deposit_non_refundable', 'prepay_non_refundable']); if (!$room->free_cancellation && !$room->non_refundable) { $room->special_conditions = true; $this->data->special_conditions = true; } } $this->data->worst_conditions = CHClient::worstConditions($conditions_array); // display $this->setLayout('processing'); parent::display(); return; }