Omeka_Application_Resource_Router
Package: Application\Resource
- class Omeka_Application_Resource_Router
extends Zend_Application_Resource_Router
Set up the router and the built-in routes.
- Omeka_Application_Resource_Router::init()
- Returns:
Zend_Controller_Router_Rewrite
- Omeka_Application_Resource_Router::_addHomepageRoute($router)
Adds the homepage route to the router (as specified by the navigation settings page) The route will not be added if the user is currently on the admin theme.
- Parameters:
$router (
Zend_Controller_Router_Rewrite
) – The router
- Omeka_Application_Resource_Router::_addHomepageRedirect($uri, $router)
Adds a redirect route for the homepage.
A redirect is required to make a “homepage” that is an external URL, an admin URL, or a URL with a query string.
- Parameters:
$uri (
string
) – The absolute uri to redirect to the default route to$router (
Zend_Controller_Router_Rewrite
) – The router- Returns:
bool True if the route was successfully added, else false.
- Omeka_Application_Resource_Router::_leftTrim($s, $n)
Left trims the first occurrence of a string within a string. Note: it will only trim the first occurrence of the string.
- Parameters:
$s (
string
) – The base string$n (
string
) – The string to remove from the left side of the base string- Returns:
string