_event = $event; $this->_extraArguments = $extraArguments; } // // Getters and Setters // /** * Get the event. * * @return string */ public function getEvent() { return $this->_event; } /** * Get the extra arguments. * * @return array */ public function getExtraArguments() { return $this->_extraArguments; } // // Overridden methods from LinkActionRequest // /** * @see LinkActionRequest::getLocalizedOptions() */ public function getLocalizedOptions() { $parentLocalizedOptions = parent::getLocalizedOptions(); // override the modalHandler option. $parentLocalizedOptions['modalHandler'] = '$.pkp.controllers.modal.JsEventConfirmationModalHandler'; $parentLocalizedOptions['jsEvent'] = $this->getEvent(); if (is_array($this->getExtraArguments())) { $json = new JSONMessage(); $json->setContent($this->getExtraArguments()); $parentLocalizedOptions['extraArguments'] = $json->getString(); } return $parentLocalizedOptions; } } if (!PKP_STRICT_MODE) { class_alias('\PKP\linkAction\request\JsEventConfirmationModal', '\JsEventConfirmationModal'); }