Omeka_Controller_Plugin_Admin

class Omeka_Controller_Plugin_Admin

Package: Controller\Plugin

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 adminpages, with the exception of a few white-listed URLs, which are stored inthis plugin.

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

property _adminWhitelist

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

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) –
Returns:

void

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) –
Returns:

void

getRedirector()

Return the redirector action helper.

Returns:Zend_Controller_Action_Helper_Redirector
getAuth()

Return the auth object.

Returns:Zend_Auth
_requireLogin($request)

Determine whether or not the request requires an authenticated user.

Parameters:
  • $request (unknown) –
Returns:

boolean

Project Versions

Previous topic

Libraries/Omeka/Controller/Plugin

Next topic

Omeka_Controller_Plugin_Debug

This Page