clearPubId() public method

Clear pub id.
public clearPubId ( $pubIdPlugInClassName )
$pubIdPlugInClassName string
コード例 #1
0
 /**
  * Clear proof submission file pub id.
  * @param $args array
  * @param $request Request
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     $submissionFile = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION_FILE);
     $stageId = $request->getUserVar('stageId');
     import('lib.pkp.controllers.tab.pubIds.form.PKPPublicIdentifiersForm');
     $form = new PKPPublicIdentifiersForm($submissionFile, $stageId);
     $form->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }
コード例 #2
0
 /**
  * Clear pub id
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     if (!$request->checkCSRF()) {
         return new JSONMessage(false);
     }
     $submission = $this->getSubmission();
     $representationDao = Application::getRepresentationDAO();
     $representation = $representationDao->getById($request->getUserVar('representationId'), $submission->getId());
     import('lib.pkp.controllers.tab.pubIds.form.PKPPublicIdentifiersForm');
     $form = new PKPPublicIdentifiersForm($representation);
     $form->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }
コード例 #3
0
 /**
  * Clear submission pub id.
  * @param $args array
  * @param $request Request
  * @return JSONMessage JSON object
  */
 function clearPubId($args, $request)
 {
     import('lib.pkp.controllers.tab.pubIds.form.PKPPublicIdentifiersForm');
     $submission = $this->getSubmission();
     $stageId = $this->getStageId();
     if ($this->getCurrentTab() == 'identifiers') {
         $identifiersForm = new PKPPublicIdentifiersForm($submission, $stageId, array('displayedInContainer' => true));
     } else {
         // publication format tabs
         $representationId = (int) $request->getUserVar('representationId');
         $publicationFormatDao = DAORegistry::getDAO('PublicationFormatDAO');
         $publicationFormat = $publicationFormatDao->getById($representationId, $submission->getId());
         $identifiersForm = new PKPPublicIdentifiersForm($publicationFormat);
     }
     $identifiersForm->clearPubId($request->getUserVar('pubIdPlugIn'));
     return new JSONMessage(true);
 }