Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistRepositoryAPI.php
Show First 20 Lines • Show All 757 Lines • ▼ Show 20 Lines | final public function getLandEngine() { | ||||
return $engine; | return $engine; | ||||
} | } | ||||
protected function newLandEngine() { | protected function newLandEngine() { | ||||
return null; | return null; | ||||
} | } | ||||
final public function getWorkEngine() { | |||||
$engine = $this->newWorkEngine(); | |||||
if ($engine) { | |||||
$engine->setRepositoryAPI($this); | |||||
} | |||||
return $engine; | |||||
} | |||||
protected function newWorkEngine() { | |||||
return null; | |||||
} | |||||
final public function getSupportedMarkerTypes() { | final public function getSupportedMarkerTypes() { | ||||
return $this->newSupportedMarkerTypes(); | return $this->newSupportedMarkerTypes(); | ||||
} | } | ||||
protected function newSupportedMarkerTypes() { | protected function newSupportedMarkerTypes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
final public function newMarkerRefQuery() { | final public function newMarkerRefQuery() { | ||||
return id($this->newMarkerRefQueryTemplate()) | return id($this->newMarkerRefQueryTemplate()) | ||||
->setRepositoryAPI($this); | ->setRepositoryAPI($this); | ||||
} | } | ||||
protected function newMarkerRefQueryTemplate() { | protected function newMarkerRefQueryTemplate() { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
final public function getDisplayHash($hash) { | |||||
return substr($hash, 0, 12); | |||||
} | |||||
} | } |