Differential D11116 Diff 26807 src/applications/differential/customfield/DifferentialAsanaRepresentationField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialAsanaRepresentationField.php
Show All 24 Lines | final class DifferentialAsanaRepresentationField | ||||
public function renderPropertyViewLabel() { | public function renderPropertyViewLabel() { | ||||
return $this->getFieldName(); | return $this->getFieldName(); | ||||
} | } | ||||
public function renderPropertyViewValue(array $handles) { | public function renderPropertyViewValue(array $handles) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$src_phid = $this->getObject()->getPHID(); | $src_phid = $this->getObject()->getPHID(); | ||||
$edge_type = PhabricatorEdgeConfig::TYPE_PHOB_HAS_ASANATASK; | $edge_type = PhabricatorObjectHasAsanaTaskEdgeType::EDGECONST; | ||||
$query = id(new PhabricatorEdgeQuery()) | $query = id(new PhabricatorEdgeQuery()) | ||||
->withSourcePHIDs(array($src_phid)) | ->withSourcePHIDs(array($src_phid)) | ||||
->withEdgeTypes(array($edge_type)) | ->withEdgeTypes(array($edge_type)) | ||||
->needEdgeData(true); | ->needEdgeData(true); | ||||
$edges = $query->execute(); | $edges = $query->execute(); | ||||
if (!$edges) { | if (!$edges) { | ||||
Show All 27 Lines |