Вход Регистрация
Файл: library/XenForo/Route/Prefix/Reports.php
Строк: 45
<?php

/**
 * Prefix for managing reported content.
 *
 * @package XenForo_Report
 */
class XenForo_Route_Prefix_Reports implements XenForo_Route_Interface
{
    
/**
     * Match a specific route for an already matched prefix.
     *
     * @see XenForo_Route_Interface::match()
     */
    
public function match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)
    {
        
$action $router->resolveActionWithIntegerParam($routePath$request'report_id');
        return 
$router->getRouteMatch('XenForo_ControllerPublic_Report'$action);
    }

    
/**
     * Method to build a link to the specified page/action with the provided
     * data and params.
     *
     * @see XenForo_Route_BuilderInterface
     */
    
public function buildLink($originalPrefix$outputPrefix$action$extension$data, array &$extraParams)
    {
        return 
XenForo_Link::buildBasicLinkWithIntegerParam($outputPrefix$action$extension$data'report_id');
    }
}
Онлайн: 1
Реклама