Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ContextSettingsWizardHandler.inc.php
1 <?php
20 // Import base class.
21 import('classes.handler.Handler');
22 
24 
29  parent::Handler();
30  $this->addRoleAssignment(
31  array(ROLE_ID_MANAGER),
32  array('startWizard')
33  );
34  }
35 
36 
37  //
38  // Implement template methods from PKPHandler
39  //
43  function authorize($request, &$args, $roleAssignments) {
44  import('lib.pkp.classes.security.authorization.PkpContextAccessPolicy');
45  $this->addPolicy(new PkpContextAccessPolicy($request, $roleAssignments));
46  return parent::authorize($request, $args, $roleAssignments);
47  }
48 
49 
50  //
51  // Public handler methods
52  //
59  function startWizard($args, $request) {
60  $templateMgr = TemplateManager::getManager($request);
62  LOCALE_COMPONENT_APP_MANAGER,
63  LOCALE_COMPONENT_PKP_MANAGER
64  );
65 
66  $this->setupTemplate($request);
67  return $templateMgr->fetchJson('controllers/wizard/settings/settingsWizard.tpl');
68  }
69 }
70 
71 ?>
addPolicy($authorizationPolicy, $addToTop=false)
static requireComponents()
authorize($request, &$args, $roleAssignments)
setupTemplate($request)
Class to control access to PKP applications&#39; setup components.
addRoleAssignment($roleIds, $operations)
Base request handler application class.
Definition: Handler.inc.php:20
A controller that handles basic server-side operations of the context settings wizard.