Exemplo n.º 1
0
 /**
  * @param  $formData
  * @param string $entryPoint
  * @return bool
  */
 function tryDeleteSubmit($formData, $entryPoint = 'internal')
 {
     $success = $this->userLDAP->deleteKeypair($formData['key']);
     if ($success) {
         $this->getOutput()->addWikiMsg('openstackmanager-deletedkey');
     } else {
         $this->getOutput()->addWikiMsg('openstackmanager-deletedkeyfailed');
     }
     $out = '<br />';
     $out .= Linker::link($this->getTitle(), wfMsgHtml('openstackmanager-backkeylist'));
     $this->getOutput()->addHTML($out);
     return true;
 }
 /**
  * @param  $formData
  * @param string $entryPoint
  * @return bool
  */
 function tryDeleteSubmit($formData, $entryPoint = 'internal')
 {
     $success = $this->userLDAP->deleteKeypair($formData['key']);
     if ($success) {
         $this->getOutput()->addWikiMsg('openstackmanager-deletedkey');
     } else {
         $this->getOutput()->addWikiMsg('openstackmanager-deletedkeyfailed');
     }
     $returnto = Title::newFromText($formData['returnto']);
     if ($returnto) {
         $this->getOutput()->addReturnTo($returnto);
     }
     return true;
 }