Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ManagerHandler.inc.php
1 <?php
2 
17 import('classes.handler.Handler');
18 
19 class ManagerHandler extends Handler {
23  function ManagerHandler() {
24  parent::Handler();
25  $this->addRoleAssignment(ROLE_ID_MANAGER, 'index');
26  }
27 
34  function authorize($request, &$args, $roleAssignments) {
35  import('lib.pkp.classes.security.authorization.PkpContextAccessPolicy');
36  $this->addPolicy(new PkpContextAccessPolicy($request, $roleAssignments));
37  return parent::authorize($request, $args, $roleAssignments);
38  }
39 
44  function setupTemplate($request = null) {
45  AppLocale::requireComponents(LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER);
46  parent::setupTemplate($request);
47  }
48 }
49 
50 ?>
addPolicy($authorizationPolicy, $addToTop=false)
authorize($request, &$args, $roleAssignments)
Handle requests for press management functions.
static requireComponents()
Class to control access to PKP applications&#39; setup components.
addRoleAssignment($roleIds, $operations)
Base request handler application class.
Definition: Handler.inc.php:20
setupTemplate($request=null)