Page MenuHomePhorge

ReleephDependsOnFieldSpecification.php
No OneTemporary

Size
846 B
Referenced Files
None
Subscribers
None

ReleephDependsOnFieldSpecification.php

<?php
final class ReleephDependsOnFieldSpecification
extends ReleephFieldSpecification {
public function getFieldKey() {
return 'dependsOn';
}
public function getName() {
return pht('Depends On');
}
public function getRequiredHandlePHIDsForPropertyView() {
return $this->getDependentRevisionPHIDs();
}
public function renderPropertyViewValue(array $handles) {
return $this->renderHandleList($handles);
}
private function getDependentRevisionPHIDs() {
$requested_object = $this->getObject()->getRequestedObjectPHID();
if (!($requested_object instanceof DifferentialRevision)) {
return array();
}
$revision = $requested_object;
return PhabricatorEdgeQuery::loadDestinationPHIDs(
$revision->getPHID(),
DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 6, 5:04 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80320
Default Alt Text
ReleephDependsOnFieldSpecification.php (846 B)

Event Timeline