Beispiel #1
0
 /**
  * Constructor
  **/
 function AuthorHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorConference($this));
     $this->addCheck(new HandlerValidatorSchedConf($this));
     $this->addCheck(new HandlerValidatorRoles($this, true, null, array('requiresAuthor' => Request::getUserVar('requiresAuthor')), array(ROLE_ID_AUTHOR)));
 }
 /**
  * Constructor
  **/
 function CustomLocaleHandler($parentPluginName)
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorJournal($this));
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_MANAGER)));
     $this->plugin = PluginRegistry::getPlugin('generic', $parentPluginName);
 }
Beispiel #3
0
 /**
  * Constructor
  * @param $request Request
  */
 function ArticleHandler(&$request)
 {
     parent::Handler($request);
     $router =& $request->getRouter();
     $this->addCheck(new HandlerValidatorJournal($this));
     $this->addCheck(new HandlerValidatorCustom($this, false, null, null, create_function('$journal', 'return $journal->getSetting(\'publishingMode\') != PUBLISHING_MODE_NONE;'), array($router->getContext($request))));
 }
 /**
  * Constructor
  **/
 function TranslatorHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN)));
     $plugin =& Registry::get('plugin');
     $this->plugin =& $plugin;
 }
Beispiel #5
0
 /**
  * Constructor
  **/
 function ReviewerHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorConference($this));
     $this->addCheck(new HandlerValidatorSchedConf($this));
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_REVIEWER)));
 }
 /**
  * Constructor.
  */
 function PKPManageFileApiHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR), array('deleteFile', 'editMetadata', 'editMetadataTab', 'saveMetadata'));
     // Load submission-specific translations
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_SUBMISSION);
 }
 /**
  * Constructor
  **/
 function CustomLocaleHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorJournal($this));
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_JOURNAL_MANAGER)));
     $plugin =& PluginRegistry::getPlugin('generic', 'CustomLocalePlugin');
     $this->plugin =& $plugin;
 }
 /**
  * Constructor
  */
 function InformationCenterHandler()
 {
     parent::Handler();
     // Author can do everything except delete notes.
     // (Review-related log entries are hidden from the author, but
     // that's not implemented here.)
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR), $authorOps = array('viewInformationCenter', 'metadata', 'saveForm', 'viewNotes', 'listNotes', 'saveNote', 'viewHistory'));
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array_merge($authorOps, array('deleteNote')));
 }
 function ErrorHandler($params = null)
 {
     Handler::Handler($params);
     //    global $DEFAULT_LANGUAGE;
     //    $this->language_ = $DEFAULT_LANGUAGE;
     //$this->caller_class_ = (!empty($params['caller'])) ? $params['caller'] : null ;
     //$this->error_message_ = array();
     return $this->loadErrorCode();
 }
Beispiel #10
0
 function MinutesHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorJournal($this));
     // 02-01-2012
     $page = Request::getRequestedPage();
     if ($page == 'sectionEditor') {
         $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SECTION_EDITOR)));
     } elseif ($page == 'editor') {
         $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_EDITOR)));
     }
 }
Beispiel #11
0
 /**
  * Constructor
  **/
 function ReportsHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorJournal($this));
     // FIXME This is kind of evil
     $page = Request::getRequestedPage();
     if ($page == 'sectionEditor') {
         $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SECTION_EDITOR)));
     } elseif ($page == 'editor') {
         $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_EDITOR)));
     }
 }
 /**
  * Constructor
  */
 function GatewayHandler()
 {
     parent::Handler();
 }
Beispiel #13
0
 /**
  * Constructor
  */
 function GiftsHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor
  **/
 function IssueHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorJournal($this));
     $this->addCheck(new HandlerValidatorCustom($this, false, null, null, create_function('$journal', 'return $journal->getSetting(\'publishingMode\') != PUBLISHING_MODE_NONE;'), array(Request::getJournal())));
 }
Beispiel #15
0
 /**
  * Constructor
  **/
 function CounterHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor
  */
 function AboutContextHandler()
 {
     parent::Handler();
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON);
 }
Beispiel #17
0
 /**
  * Constructor
  **/
 function RTAdminHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorConference($this));
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_CONFERENCE_MANAGER)));
 }
 /**
  * Constructor
  */
 function ContextSettingsWizardHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('startWizard'));
 }
 /**
  * Constructor
  */
 function PKPAuthorDashboardHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('submission', 'readSubmissionEmail'));
 }
 /**
  * Constructor
  **/
 function SchedConfHandler()
 {
     parent::Handler();
     $this->addCheck(new HandlerValidatorConference($this));
     $this->addCheck(new HandlerValidatorSchedConf($this));
 }
Beispiel #21
0
 /**
  * Constructor
  **/
 function ThesisHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor.
  */
 function PKPManageFileApiHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR), array('deleteFile', 'editMetadata', 'saveMetadata'));
 }
 /**
  * Constructor
  */
 function PKPFileUploadWizardHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_AUTHOR, ROLE_ID_REVIEWER, ROLE_ID_ASSISTANT), array('startWizard', 'displayFileUploadForm', 'uploadFile', 'confirmRevision', 'editMetadata', 'finishFileSubmission'));
 }
Beispiel #24
0
 /**
  * Constructor
  **/
 function DonationsHandler()
 {
     parent::Handler();
 }
Beispiel #25
0
 /**
  * Constructor
  **/
 function UserHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor
  **/
 function ReferralHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor.
  */
 function DocumentLibraryHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_AUTHOR, ROLE_ID_ASSISTANT), array('documentLibrary'));
 }
 /**
  * Constructor.
  */
 function FileApiHandler()
 {
     parent::Handler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR), array('downloadFile', 'downloadLibraryFile', 'viewFile', 'downloadAllFiles', 'recordDownload', 'enableLinkAction'));
 }
Beispiel #29
0
 /**
  * Constructor
  **/
 function IndexHandler()
 {
     parent::Handler();
 }
 /**
  * Constructor
  */
 function PKPSubmissionHandler()
 {
     parent::Handler();
 }