Omeka_Controller_Plugin_Admin

Package: Controller\Plugin

class Omeka_Controller_Plugin_Admin

extends Zend_Controller_Plugin_Abstract

This controller plugin allows for all functionality that is specific to the Admin theme.

For now, all this includes is preventing unauthenticated access to all admin pages, with the exception of a few white-listed URLs, which are stored in this plugin.

This controller plugin should be loaded only in the admin bootstrap.

property Omeka_Controller_Plugin_Admin::$_adminWhitelist

protected string

Controller/Action list for admin actions that do not require being logged-in

Omeka_Controller_Plugin_Admin::routeStartup(Zend_Controller_Request_Abstract $request)

Direct requests to the admin interface. Called upon router startup, before the request is routed.

Parameters:
  • $request (Zend_Controller_Request_Abstract) –

Omeka_Controller_Plugin_Admin::preDispatch(Zend_Controller_Request_Abstract $request)

Require login when attempting to access the admin interface. Whitelisted controller/action combinations are exempt from this requirement. Called before dispatching.

Parameters:
  • $request (Zend_Controller_Request_Abstract) –

Omeka_Controller_Plugin_Admin::getRedirector()

Return the redirector action helper.

Returns:

Zend_Controller_Action_Helper_Redirector

Omeka_Controller_Plugin_Admin::getAuth()

Return the auth object.

Returns:

Zend_Auth

Omeka_Controller_Plugin_Admin::_requireLogin($request)

Determine whether or not the request requires an authenticated user.

Parameters:
  • $request

Returns:

bool