_event = $event; $this->_extraArguments = $extraArguments; } // // Getters and Setters // /** * Get the event. * @return string */ function getEvent() { return $this->_event; } /** * Get the extra arguments. * @return string */ function getExtraArguments() { return $this->_extraArguments; } // // Overridden methods from LinkActionRequest // /** * @see LinkActionRequest::getLocalizedOptions() */ 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; } } ?>