[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/differential/customfield/ -> DifferentialDependenciesField.php (source)

   1  <?php
   2  
   3  final class DifferentialDependenciesField
   4    extends DifferentialCustomField {
   5  
   6    public function getFieldKey() {
   7      return 'differential:dependencies';
   8    }
   9  
  10    public function getFieldName() {
  11      return pht('Dependencies');
  12    }
  13  
  14    public function canDisableField() {
  15      return false;
  16    }
  17  
  18    public function getFieldDescription() {
  19      return pht('Lists revisions this one is depended on by.');
  20    }
  21  
  22    public function shouldAppearInPropertyView() {
  23      return true;
  24    }
  25  
  26    public function renderPropertyViewLabel() {
  27      return $this->getFieldName();
  28    }
  29  
  30    public function getRequiredHandlePHIDsForPropertyView() {
  31      return PhabricatorEdgeQuery::loadDestinationPHIDs(
  32        $this->getObject()->getPHID(),
  33        PhabricatorEdgeConfig::TYPE_DREV_DEPENDED_ON_BY_DREV);
  34    }
  35  
  36    public function renderPropertyViewValue(array $handles) {
  37      return $this->renderHandleList($handles);
  38    }
  39  
  40  }


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