public function payMethodsObject($askForDeletingAddresses = array())
 {
     include_once './Services/Payment/classes/class.ilPayMethods.php';
     global $rbacsystem, $ilCtrl;
     $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.main_view.html', 'Services/Payment');
     if (!$rbacsystem->checkAccess('read', $this->object->getRefId())) {
         $this->ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $this->ilErr->MESSAGE);
     }
     if (count($askForDeletingAddresses)) {
         $oConfirmationGUI = new ilConfirmationGUI();
         // set confirm/cancel commands
         $oConfirmationGUI->setFormAction($ilCtrl->getFormAction($this, "deleteAddressesForPaymethods"));
         $oConfirmationGUI->setHeaderText($this->lng->txt("info_delete_sure"));
         $oConfirmationGUI->setCancel($this->lng->txt("cancel"), "payMethods");
         $oConfirmationGUI->setConfirm($this->lng->txt("confirm"), "deleteAddressesForPaymethods");
         foreach ($askForDeletingAddresses as $pm_id) {
             $pm_obj = new ilPayMethods($pm_id);
             $oConfirmationGUI->additem('paymethod[' . $pm_obj->getPmId() . ']', $pm_obj->getPmId(), $this->lng->txt('delete_addresses_bill') . ' -> ' . ilPayMethods::getStringByPaymethod($pm_obj->getPmTitle()));
         }
         $this->tpl->setVariable('CONFIRMATION', $oConfirmationGUI->getHtml());
         return true;
     }
     $obj_paymethods = new ilPayMethods();
     $paymethods = $obj_paymethods->readAll();
     $result = array();
     $counter = 0;
     foreach ($paymethods as $paymethod) {
         if ($paymethod['pm_title'] != 'epay') {
             $result[$counter]['pm_title'] = ilPayMethods::getStringByPaymethod($paymethod['pm_title']);
             $result[$counter]['pm_enabled'] = ilUtil::formCheckbox($paymethod['pm_enabled'] ? 1 : 0, 'pm_enabled[' . $paymethod['pm_id'] . ']', 1);
             $result[$counter]['save_usr_adr'] = ilUtil::formCheckbox($paymethod['save_usr_adr'] ? 1 : 0, 'save_usr_adr[' . $paymethod['pm_id'] . ']', 1);
             $this->ctrl->clearParameters($this);
             $counter++;
         }
     }
     $this->ctrl->setParameter($this, 'cmd', 'savePayMethods');
     $tbl = new ilShopTableGUI($this);
     $tbl->setTitle($this->lng->txt('pays_pay_methods'));
     $tbl->setId('tbl_paymethods');
     $tbl->setRowTemplate("tpl.shop_paymethods_row.html", "Services/Payment");
     $tbl->addColumn($this->lng->txt('title'), 'pm_title', '10%');
     $tbl->addColumn($this->lng->txt('enabled'), 'pm_enabled', '10%');
     $tbl->addColumn($this->lng->txt('save_customer_address'), 'save_usr_adr', '10%');
     $tbl->addCommandButton('savePayMethods', $this->lng->txt('save'));
     $tbl->disable('sort');
     $tbl->setData($result);
     $this->tpl->setVariable('TABLE', $tbl->getHTML());
     return true;
 }