public function performDeleteVendorsObject() { include_once './Services/Payment/classes/class.ilPaymentTrustees.php'; global $rbacsystem; // MINIMUM ACCESS LEVEL = 'read' if (!$rbacsystem->checkAccess('write', $this->object->getRefId())) { $this->ilErr->raiseError($this->lng->txt('msg_no_perm_write'), $this->ilErr->MESSAGE); } foreach ($_SESSION['pays_vendor'] as $vendor) { $this->vendors_obj->delete($vendor); ilPaymentTrustees::_deleteTrusteesOfVendor($vendor); } ilUtil::sendInfo($this->lng->txt('pays_deleted_number_vendors') . ' ' . count($_SESSION['pays_vendor'])); unset($_SESSION['pays_vendor']); if ($_SESSION['disable_shop'] == true) { $this->genSetData->set('shop_enabled', 0, 'common'); $_SESSION['disable_shop'] = false; } $this->vendorsObject(); return true; }