public function deleteVendorsObject() { //include_once './Services/Payment/classes/class.ilPaymentBookings.php'; if (!count($_POST['vendor'])) { ilUtil::sendFailure($this->lng->txt('pays_no_vendor_selected')); $this->vendorsObject(); return true; } // CHECK BOOKINGS foreach ($_POST['vendor'] as $vendor) { if (ilPaymentBookings::_getCountBookingsByVendor($vendor)) { ilUtil::sendInfo($this->lng->txt('pays_active_bookings')); $this->vendorsObject(); return true; } } $_SESSION['pays_vendor'] = $_POST['vendor']; ilUtil::sendQuestion($this->lng->txt('pays_sure_delete_selected_vendors')); $this->vendorsObject(true); return true; }