Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ManagementHandler.inc.php
1 <?php
2 
15 // Import the base Handler.
16 import('classes.handler.Handler');
17 
18 class ManagementHandler extends Handler {
22  function ManagementHandler() {
23  parent::Handler();
24  }
25 
26 
27  //
28  // Overridden methods from Handler
29  //
33  function initialize($request, $args = null) {
34  parent::initialize($request, $args);
35 
36  // Load manager locale components.
37  AppLocale::requireComponents(LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER, LOCALE_COMPONENT_PKP_GRID);
38  }
39 
46  function authorize($request, &$args, $roleAssignments) {
47  import('lib.pkp.classes.security.authorization.PkpContextAccessPolicy');
48  $this->addPolicy(new PkpContextAccessPolicy($request, $roleAssignments));
49  return parent::authorize($request, $args, $roleAssignments);
50  }
51 }
52 
53 ?>
addPolicy($authorizationPolicy, $addToTop=false)
authorize($request, &$args, $roleAssignments)
static requireComponents()
Class to control access to PKP applications&#39; setup components.
Base request handler application class.
Definition: Handler.inc.php:20
initialize($request, $args=null)
Base class for all management page handlers.