Page MenuHomeClusterLabs Projects
Diviner Tech Docs AphrontRoutingMap

final class AphrontRoutingMap
Phorge Technical Documentation (Aphront)

Collection of routes on a site for an application.

Tasks

Map Information

No methods for this task.

Routing

  • public function routePath($path) — Find the route matching a path, if one exists.
  • private function tryRoute($route, $value, $path) — Test a sub-map to see if any routes match a path.
  • private function newRoutingResult() — Build a new routing result for this map.

Other Methods

Methods

public function setSite($site)

This method is not documented.
Parameters
AphrontSite$site
Return
wild

public function getSite()

This method is not documented.
Return
wild

public function setApplication($application)

This method is not documented.
Parameters
PhabricatorApplication$application
Return
wild

public function getApplication()

This method is not documented.
Return
wild

public function setRoutes($routes)

This method is not documented.
Parameters
array$routes
Return
wild

public function getRoutes()

This method is not documented.
Return
wild

public function routePath($path)

Find the route matching a path, if one exists.

Parameters
string$pathPath to route.
Return
AphrontRoutingResult|nullRouting result, if path matches map.

private function tryRoute($route, $value, $path)

Test a sub-map to see if any routes match a path.

Parameters
string$routePath to route.
string$valuePattern from the map.
string$pathValue from the map.
Return
dict<string, wild>|nullMatch details, if path matches sub-map.

private function newRoutingResult()

Build a new routing result for this map.

Return
AphrontRoutingResultNew, empty routing result.