Page MenuHomePhorge
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 __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

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.