2 namespace TYPO3\CMS\Backend\Routing;
54 $this->routes = $router->getRoutes();
69 public function buildUriFromRoute($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)
72 if (!isset($this->routes[$name])) {
73 throw new RouteNotFoundException(
'Unable to generate a URL for the named route "' . $name .
'" because this route was not found.');
76 $route = $this->routes[$name];
80 if ($route->getOption(
'ajax')) {
82 if ($route->getOption(
'access') !==
'public') {
90 'ajaxID' => $route->getPath()
94 if ($route->getOption(
'access') !==
'public') {
102 'route' => $route->getPath()
107 return $this->
buildUri($parameters, $referenceType);
119 public function buildUriFromModule($moduleName, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)
125 return $this->
buildUri($parameters, $referenceType);
141 public function buildUriFromAjaxId($ajaxIdentifier, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)
144 'ajaxID' => $ajaxIdentifier
146 if (!empty(
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'AJAX'][$ajaxIdentifier][
'csrfTokenCheck'])) {
149 return $this->
buildUri($parameters, $referenceType);
160 protected function buildUri($parameters, $referenceType)
163 if ($referenceType === self::ABSOLUTE_PATH) {