[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/releeph/field/specification/ -> ReleephDependsOnFieldSpecification.php (source)

   1  <?php
   2  
   3  final class ReleephDependsOnFieldSpecification
   4    extends ReleephFieldSpecification {
   5    public function getFieldKey() {
   6      return 'dependsOn';
   7    }
   8  
   9    public function getName() {
  10      return pht('Depends On');
  11    }
  12  
  13    public function getRequiredHandlePHIDsForPropertyView() {
  14      return $this->getDependentRevisionPHIDs();
  15    }
  16  
  17    public function renderPropertyViewValue(array $handles) {
  18      return $this->renderHandleList($handles);
  19    }
  20  
  21    private function getDependentRevisionPHIDs() {
  22      $requested_object = $this->getObject()->getRequestedObjectPHID();
  23      if (!($requested_object instanceof DifferentialRevision)) {
  24        return array();
  25      }
  26  
  27      $revision = $requested_object;
  28  
  29      return PhabricatorEdgeQuery::loadDestinationPHIDs(
  30        $revision->getPHID(),
  31        PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV);
  32    }
  33  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1