/** * Gets the parameters from the current route. * This should only be used by page controllers, or objects that are guaranteed * to only be instantiated by fetching a router response. * * NOTE: The values returned are raw and it is the responsibility of the * controller to validate them. * * @return array mixed - An array of the parameter values */ public static function getParameters() { if (!isset(self::$current_route)) { throw new vB_Exception_Router('Parameters requested for current route but no current route has been resolved.'); } return self::$current_route->getParameters(); }