--------------------------------- Omeka_Application_Resource_Router --------------------------------- .. php:class:: Omeka_Application_Resource_Router Package: :doc:`Application\\Resource ` Set up the router and the built-in routes. .. php:method:: init() :returns: Zend_Controller_Router_Rewrite .. php:method:: _addHomepageRoute(Zend_Controller_Router_Rewrite $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. :param Zend_Controller_Router_Rewrite $router: The router .. php:method:: addRedirectRouteForDefaultRoute(String $routeName, String $uri, array $params = Array, Zend_Controller_Router_Rewrite $router) Adds a redirect route for the default route and returns whether the route was successfully added If the current request matches the default route, then the flow will redirect to the index action of the RedirectorController, where the page will be redirected to the absolute uri We must use this Redirector proxy controller because a user may be redirecting to an admin page and it needs to reload the application from the admin context. Also, the Zend router and dispatcher does not allow us to directly dispatch to an absolute uri. :param String $routeName: The name of the new redirect route :param String $uri: The absolute uri to redirect to the default route to :param array $params: The parameters for the redirect route. :param Zend_Controller_Router_Rewrite $router: The router :returns: boolean Returns true if the route was successfully added, else false. .. php:method:: _leftTrim(string $s, string $n) Left trims the first occurrence of a string within a string. Note: it will only trim the first occurrence of the string. :param string $s: The base string :param string $n: The string to remove from the left side of the base string :returns: string