Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/query/ArcanistRuntimeHardpointQuery.php
Show All 18 Lines | final public function getWorkingCopy() { | ||||
return $this->getRuntime()->getWorkingCopy(); | return $this->getRuntime()->getWorkingCopy(); | ||||
} | } | ||||
final public function getRepositoryAPI() { | final public function getRepositoryAPI() { | ||||
return $this->getWorkingCopy()->getRepositoryAPI(); | return $this->getWorkingCopy()->getRepositoryAPI(); | ||||
} | } | ||||
public static function getAllQueries() { | public static function getAllQueries() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public function canLoadObject(ArcanistHardpointObject $object) { | final public function canLoadObject(ArcanistHardpointObject $object) { | ||||
if ($this->canLoadHardpoint === null) { | if ($this->canLoadHardpoint === null) { | ||||
$this->canLoadHardpoint = $this->canLoadHardpoint(); | $this->canLoadHardpoint = $this->canLoadHardpoint(); | ||||
} | } | ||||
Show All 18 Lines | abstract class ArcanistRuntimeHardpointQuery | ||||
final public function newConduitSearch( | final public function newConduitSearch( | ||||
$method, | $method, | ||||
$constraints, | $constraints, | ||||
$attachments = array()) { | $attachments = array()) { | ||||
$conduit_engine = $this->getRuntime() | $conduit_engine = $this->getRuntime() | ||||
->getConduitEngine(); | ->getConduitEngine(); | ||||
$conduit_future = id(new ConduitSearchFuture()) | $conduit_future = (new ConduitSearchFuture()) | ||||
->setConduitEngine($conduit_engine) | ->setConduitEngine($conduit_engine) | ||||
->setMethod($method) | ->setMethod($method) | ||||
->setConstraints($constraints) | ->setConstraints($constraints) | ||||
->setAttachments($attachments); | ->setAttachments($attachments); | ||||
return $conduit_future; | return $conduit_future; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0