Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SetupListbuilderHandler.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.listbuilder.ListbuilderHandler');
17 
20  var $_context;
21 
25  function SetupListbuilderHandler() {
26  parent::ListbuilderHandler();
27  $this->addRoleAssignment(
28  ROLE_ID_MANAGER,
29  array('fetch', 'fetchRow', 'save')
30  );
31  }
32 
37  function setContext($context) {
38  $this->_context = $context;
39  }
40 
45  function getContext() {
46  return $this->_context;
47  }
48 
52  function authorize($request, &$args, $roleAssignments) {
53  import('lib.pkp.classes.security.authorization.PkpContextAccessPolicy');
54  $this->addPolicy(new PkpContextAccessPolicy($request, $roleAssignments));
55  return parent::authorize($request, $args, $roleAssignments);
56  }
57 
61  function initialize($request) {
62  $this->setContext($request->getContext());
63  return parent::initialize($request);
64  }
65 }
66 
67 ?>
authorize($request, &$args, $roleAssignments)
addPolicy($authorizationPolicy, $addToTop=false)
Class defining basic operations for handling Listbuilder UI elements.
Class to control access to PKP applications&#39; setup components.
addRoleAssignment($roleIds, $operations)
Base class for setup listbuilders.