_remoteAction = $remoteAction; $this->_csrfToken = $session->getCSRFToken(); } // // Getters and Setters // /** * Get the remote action. * @return string */ function getRemoteAction() { return $this->_remoteAction; } /** * Get the CSRF token. * @return string */ function getCSRFToken() { return $this->_csrfToken; } // // Overridden methods from LinkActionRequest // /** * @see LinkActionRequest::getLocalizedOptions() */ function getLocalizedOptions() { return array_merge( parent::getLocalizedOptions(), array( 'modalHandler' => '$.pkp.controllers.modal.RemoteActionConfirmationModalHandler', 'remoteAction' => $this->getRemoteAction(), 'csrfToken' => $this->getCSRFToken(), ) ); } } ?>