[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DifferentialDependsOnField 4 extends DifferentialCustomField { 5 6 public function getFieldKey() { 7 return 'differential:depends-on'; 8 } 9 10 public function getFieldKeyForConduit() { 11 return 'phabricator:depends-on'; 12 } 13 14 public function getFieldName() { 15 return pht('Depends On'); 16 } 17 18 public function canDisableField() { 19 return false; 20 } 21 22 public function getFieldDescription() { 23 return pht('Lists revisions this one depends on.'); 24 } 25 26 public function shouldAppearInPropertyView() { 27 return true; 28 } 29 30 public function renderPropertyViewLabel() { 31 return $this->getFieldName(); 32 } 33 34 public function getRequiredHandlePHIDsForPropertyView() { 35 return PhabricatorEdgeQuery::loadDestinationPHIDs( 36 $this->getObject()->getPHID(), 37 PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV); 38 } 39 40 public function renderPropertyViewValue(array $handles) { 41 return $this->renderHandleList($handles); 42 } 43 44 public function getProTips() { 45 return array( 46 pht( 47 'Create a dependency between revisions by writing '. 48 '"Depends on D123" in your summary.'), 49 ); 50 } 51 52 public function shouldAppearInConduitDictionary() { 53 return true; 54 } 55 56 public function getConduitDictionaryValue() { 57 return PhabricatorEdgeQuery::loadDestinationPHIDs( 58 $this->getObject()->getPHID(), 59 PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV); 60 } 61 62 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |