16 import(
'lib.pkp.classes.form.Form');
17 import(
'lib.pkp.classes.plugins.PKPPubIdPluginHelper');
45 function __construct($template, $pubObject, $approval, $confirmationText) {
46 parent::__construct($template);
48 $this->_pubObject = $pubObject;
49 $this->_approval = $approval;
50 $this->_confirmationText = $confirmationText;
53 $context = $request->getContext();
54 $this->_contextId = $context->getId();
63 function fetch($request, $template =
null, $display =
false) {
66 $templateMgr->assign(array(
67 'pubIdPlugins' => $pubIdPlugins,
72 if ($request->getUserVar(
'submissionId')) {
73 $templateMgr->assign(
'submissionId', $request->getUserVar(
'submissionId'));
75 if ($request->getUserVar(
'publicationId')) {
76 $templateMgr->assign(
'publicationId', $request->getUserVar(
'publicationId'));
78 return parent::fetch($request, $template, $display);
122 $pubIdPluginHelper->readAssignInputData($this);
131 function execute($save =
false, ...$functionArgs) {
132 parent::execute($save, ...$functionArgs);
136 $pubIdPluginHelper->assignPubId($this->
getContextId(), $this, $pubObject, $save);