public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $components = explode('/', $routePath); $subPrefix = strtolower(array_shift($components)); $controllerName = ''; $action = ''; $intParams = 'page_id'; $strParams = ''; $slice = false; switch ($subPrefix) { case 'special': if (!empty($components[1]) && ($components[0] == 'edit-template' || $components[0] == 'delete-template')) { unset($components[1]); } $controllerName = '_Special'; $slice = true; break; case 'archive': $controllerName = '_Archive'; $intParams = 'history_id'; $slice = true; break; default: $strParams = 'page_slug'; } $routePathAction = implode('/', array_slice($slice ? $components : explode('/', $routePath), 0, 2)) . '/'; $routePathAction = str_replace('//', '/', $routePathAction); if ($strParams) { $action = $router->resolveActionWithStringParam($routePathAction, $request, $strParams); } else { $action = $router->resolveActionWithIntegerParam($routePathAction, $request, $intParams); } $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('EWRcarta_ControllerPublic_Wiki' . $controllerName, $action, 'wiki', $routePath); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerOrStringParam($routePath, $request, 'social_forum_id', 'url_portion'); $action = $router->resolveActionAsPageNumber($action, $request); if (!class_exists('XFCP_ThemeHouse_SocialGroups_ControllerPublic_SocialForum', false)) { $createClass = XenForo_Application::resolveDynamicClass('XenForo_ControllerPublic_Forum', 'controller'); eval('class XFCP_ThemeHouse_SocialGroups_ControllerPublic_SocialForum extends ' . $createClass . ' {}'); } return $router->getRouteMatch('ThemeHouse_SocialGroups_ControllerPublic_SocialForum', $action, 'forums'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $components = explode('/', $routePath); $subPrefix = strtolower(array_shift($components)); $subSplits = explode('.', $subPrefix); $controllerName = ''; $action = ''; $intParams = 'event_id'; $strParams = ''; $slice = false; switch ($subPrefix) { case 'monthly': $controllerName = '_Monthly'; $strParams = 'date_select'; $slice = true; break; case 'weekly': $controllerName = '_Weekly'; $strParams = 'date_select'; $slice = true; break; case 'daily': $controllerName = '_Daily'; $strParams = 'date_select'; $slice = true; break; case 'birthdays': $controllerName = '_Birthdays'; $strParams = 'date_select'; $slice = true; break; default: if (is_numeric(end($subSplits))) { $controllerName = '_Event'; } } $routePathAction = ($slice ? implode('/', array_slice($components, 0, 2)) : $routePath) . '/'; $routePathAction = str_replace('//', '/', $routePathAction); $routePathAction = preg_replace('#create/\\d+#i', 'create/', $routePathAction); if ($strParams) { $action = $router->resolveActionWithStringParam($routePathAction, $request, $strParams); } elseif ($intParams) { $action = $router->resolveActionWithIntegerParam($routePathAction, $request, $intParams); } $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('EWRatendo_ControllerPublic_Events' . $controllerName, $action, 'events', $routePath); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $controller = 'Nobita_Teams_ControllerPublic_Team'; $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller); if ($action === false) { $parts = explode('/', $routePath); $customUrl = reset($parts); $customUrl = str_replace('-', '', $customUrl); $customUrl = strtolower($customUrl); if (in_array($customUrl, Nobita_Teams_Blacklist::$blacklist)) { // sytem action filter out $action = $router->resolveActionWithIntegerParam($routePath, $request, 'team_id'); } else { $action = $router->resolveActionWithIntegerOrStringParam($routePath, $request, 'team_id', 'custom_url'); } $action = $router->resolveActionAsPageNumber($action, $request); } return $router->getRouteMatch($controller, $action, TEAM_ROUTE_ACTION); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'location_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_ResCheckInOut_ControllerAdmin_Location', $action, 'checkInOutLocations'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'form_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('LiquidPro_SimpleForms_ControllerPublic_Form', $action, 'forms'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerOrStringParam($routePath, $request, 'node_id', 'node_name'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_SocialGroups_ControllerPublic_SocialCategory', $action, 'forums'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'method_template_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_Reflection_ControllerAdmin_MethodTemplate', $action, 'methodTemplates'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('sonnbUpThread_ControllerAdmin_UpThread', $action, 'sonnbUpThread_logNav'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithStringParam($routePath, $request, 'category_slug'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('EWRporta_ControllerPublic_Articles', 'index', 'portal'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'spam_rule_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_SpamRules_ControllerAdmin_SpamRule', $action, 'spamRules'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_Affiliate_ControllerAdmin_Affiliate', $action, 'home'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $components = explode('/', $routePath); $subPrefix = strtolower(array_shift($components)); $subSplits = explode('.', $subPrefix); $controllerName = ''; $action = ''; $intParams = 'media_id'; $strParams = ''; $slice = false; switch ($subPrefix) { case 'comment': $controllerName = '_Comment'; $intParams = 'comment_id'; $slice = true; break; case 'playlist': $controllerName = '_Playlist'; $intParams = 'playlist_id'; $slice = true; break; case 'category': $controllerName = '_Category'; $intParams = 'category_id'; $slice = true; break; case 'user': $controllerName = '_User'; $intParams = 'user_id'; $slice = true; break; case 'keyword': $controllerName = '_Keyword'; $strParams = 'keyword_text'; $slice = true; break; case 'service': $controllerName = '_Service'; $strParams = 'service_slug'; $slice = true; break; case 'admin': $controllerName = '_Admin'; $slice = true; break; default: if (is_numeric(end($subSplits))) { $controllerName = '_Media'; } } if (!empty($components[1]) && is_numeric($components[1])) { unset($components[1]); } $routePathAction = $slice ? implode('/', array_slice($components, 0, 2)) : $routePath; if ($strParams) { $action = $router->resolveActionWithStringParam($routePathAction, $request, $strParams); } else { $action = $router->resolveActionWithIntegerParam($routePathAction, $request, $intParams); } $action = $router->resolveActionAsPageNumber($action, $request); $action = (int) $action > 0 ? '' : $action; return $router->getRouteMatch('EWRmedio_ControllerPublic_Media' . $controllerName, $action, 'media', $routePath); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'object_class_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_Objects_ControllerAdmin_Class', $action, 'applications'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerOrStringParam($routePath, $request, 'node_id', 'node_name'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('WidgetFramework_ControllerPublic_WidgetPage', $action, 'forums'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'tab_rule_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('Waindigo_Tabs_ControllerAdmin_TabRule', $action, 'tabRules'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithStringParam($routePath, $request, 'handler_type_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_Objects_ControllerAdmin_HandlerType', $action, 'applications'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithStringParam($routePath, $request, 'layout_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('EWRporta_ControllerPublic_Portal', $action, 'portal'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithStringParam($routePath, $request, 'tag_url'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('XenForo_ControllerPublic_Tag', $action); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'book_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_Bible_ControllerAdmin_Book', $action, 'bibleBooks'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'paid_content_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_PayForContent_ControllerAdmin_PaidContent', $action, 'paidContent'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'thread_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('XenForo_ControllerPublic_Thread', $action, 'forums'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'search_export_profile_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_SearchAndExp_ControllerAdmin_SearchExportProfile', $action, 'searchExportProfiles'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'conversation_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('XenForo_ControllerPublic_Conversation', $action, 'inbox'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'social_permission_set_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_SocialPerms_ControllerAdmin_SocialPermissionSet', $action, 'socialPermissionSets'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('VNXF_Stats_ControllerPublic_Main', $action, 'vnxf-stats'); }
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionAsPageNumber($routePath, $request); return $router->getRouteMatch('WidgetFramework_ControllerPublic_WidgetPage', 'as-index'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_SocialUGroups_ControllerPublic_SocialUserGroups', $action, 'forum'); }
/** * Match a specific route for an already matched prefix. * * @see XenForo_Route_Interface::match() */ public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveActionWithIntegerParam($routePath, $request, 'user_banner_group_id'); $action = $router->resolveActionAsPageNumber($action, $request); return $router->getRouteMatch('ThemeHouse_UserBannerGrp_ControllerAdmin_UserBannerGroup', $action, 'userBannerGroups'); }