当前位置: 首页>>代码示例>>PHP>>正文


PHP XenForo_Router::getSubComponentAction方法代码示例

本文整理汇总了PHP中XenForo_Router::getSubComponentAction方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_Router::getSubComponentAction方法的具体用法?PHP XenForo_Router::getSubComponentAction怎么用?PHP XenForo_Router::getSubComponentAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XenForo_Router的用法示例。


在下文中一共展示了XenForo_Router::getSubComponentAction方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: match

 /**
  * 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->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, 'profile_post_id');
     }
     return $router->getRouteMatch('XenForo_ControllerPublic_ProfilePost', $action, 'members');
 }
开发者ID:darkearl,项目名称:projectT122015,代码行数:13,代码来源:ProfilePosts.php

示例2: match

 /**
  * @param $routePath
  * @param Zend_Controller_Request_Http $request
  * @param XenForo_Router $router
  * @return false|XenForo_RouteMatch
  */
 public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
 {
     $controller = 'sonnb_XenGallery_ControllerAdmin_XenGallery';
     $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, '');
     }
     return $router->getRouteMatch($controller, $action, 'sonnb_xengallery');
 }
开发者ID:Sywooch,项目名称:forums,代码行数:15,代码来源:XenGallery.php

示例3: match

 /**
  * 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)
 {
     $controller = 'XenResource_ControllerPublic_Resource';
     $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, 'resource_id');
     }
     return $router->getRouteMatch($controller, $action, 'resources');
 }
开发者ID:Sywooch,项目名称:forums,代码行数:14,代码来源:Resources.php

示例4: match

 /**
  * 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)
 {
     $controller = 'ThreePointStudio_CustomMarkupForUser_ControllerAdmin_CMFU';
     $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, 'preset_id');
     }
     return $router->getRouteMatch($controller, $action, 'users', '3ps-cmfu/');
 }
开发者ID:iversia,项目名称:3ps_cmfu,代码行数:14,代码来源:CMFU.php

示例5: match

 /**
  * 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)
 {
     $controller = 'XenGallery_ControllerPublic_Redirects_XenMedio';
     $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action == false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, 'media_id');
     }
     return $router->getRouteMatch($controller, $action);
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:14,代码来源:XenMedio.php

示例6: match

 public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
 {
     $subcomponents = $this->_getSubcomponents();
     $defaultController = $subcomponents['categories']['controller'];
     $action = $router->getSubComponentAction($subcomponents, $routePath, $request, $defaultController);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, 'portalItem_id');
     }
     return $router->getRouteMatch($defaultController, $action, 'portal');
 }
开发者ID:NixFifty,项目名称:XenForo-SimplePortal,代码行数:10,代码来源:Lpmanage.php

示例7: match

 /**
  * 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)
 {
     $components = explode('/', $routePath);
     //$type           = $components[0];
     //$action         = isset( $components[1] ) ? $components[1] : '';
     $controller = 'GeekListings_ControllerAdmin_' . ucfirst($components[0]);
     $action = $router->getSubComponentAction($this->_subComponents, $routePath, $request, $controller);
     if ($action === false) {
         $action = $router->resolveActionWithIntegerParam($routePath, $request, '');
     }
     return $router->getRouteMatch($controller, $action, 'geeklistings');
 }
开发者ID:samuelsweet,项目名称:xf,代码行数:17,代码来源:Types.php

示例8: match

 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);
 }
开发者ID:Sywooch,项目名称:forums,代码行数:19,代码来源:Teams.php


注:本文中的XenForo_Router::getSubComponentAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。