Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/env/PhabricatorEnv.php
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | /* -( Reading Configuration )---------------------------------------------- */ | ||||
/** | /** | ||||
* Get the fully-qualified production URI for a documentation resource. | * Get the fully-qualified production URI for a documentation resource. | ||||
* | * | ||||
* @task read | * @task read | ||||
*/ | */ | ||||
public static function getDoclink($resource, $type = 'article') { | public static function getDoclink($resource, $type = 'article') { | ||||
$uri = new PhutilURI('https://secure.phabricator.com/diviner/find/'); | $params = array( | ||||
$uri->setQueryParam('name', $resource); | 'name' => $resource, | ||||
$uri->setQueryParam('type', $type); | 'type' => $type, | ||||
$uri->setQueryParam('jump', true); | 'jump' => true, | ||||
return (string)$uri; | ); | ||||
$uri = new PhutilURI( | |||||
'https://secure.phabricator.com/diviner/find/', | |||||
$params); | |||||
return phutil_string_cast($uri); | |||||
} | } | ||||
/** | /** | ||||
* Build a concrete object from a configuration key. | * Build a concrete object from a configuration key. | ||||
* | * | ||||
* @task read | * @task read | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |