protected function setPageArguments() { $validator = objectRegistry::getInstance()->getManuscriptDeskBaseValidator(); $request = $this->getRequest(); $this->user_name = $validator->validateString($request->getText('username')); $this->title = $validator->validateString($request->getText('manuscript')); return; }
/** * Check if the signature of the manuscript is public * * @return boolean * @throws \Exception if page is not found */ private function signatureIsPublic() { if (!isset($this->arguments)) { throw new \Exception('error-request'); } $args = explode('/', $this->arguments); $user_name = isset($args[0]) ? $args[0] : ''; $manuscript = isset($args[1]) ? $args[1] : ''; $partial_url = 'Manuscripts:' . $user_name . '/' . $manuscript; $signature_wrapper = objectRegistry::getInstance()->getSignatureWrapper(); $signature = $signature_wrapper->getManuscriptSignature($partial_url); if ($signature === 'public') { return true; } return false; }