Differential D18693 Diff 44881 src/applications/differential/typeahead/DifferentialResponsibleViewerFunctionDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/typeahead/DifferentialResponsibleViewerFunctionDatasource.php
Show All 16 Lines | final class DifferentialResponsibleViewerFunctionDatasource | ||||
public function getDatasourceFunctions() { | public function getDatasourceFunctions() { | ||||
return array( | return array( | ||||
'viewer' => array( | 'viewer' => array( | ||||
'name' => pht('Current Viewer'), | 'name' => pht('Current Viewer'), | ||||
'summary' => pht('Use the current viewing user.'), | 'summary' => pht('Use the current viewing user.'), | ||||
'description' => pht( | 'description' => pht( | ||||
'Show revisions the current viewer is responsible for. This '. | 'Show revisions the current viewer is responsible for. This '. | ||||
'function inclues revisions the viewer is responsible for through '. | 'function includes revisions the viewer is responsible for through '. | ||||
'membership in projects and packages.'), | 'membership in projects and packages.'), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function loadResults() { | public function loadResults() { | ||||
if ($this->getViewer()->getPHID()) { | if ($this->getViewer()->getPHID()) { | ||||
$results = array($this->renderViewerFunctionToken()); | $results = array($this->renderViewerFunctionToken()); | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |