[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ReleephCommitMessageFieldSpecification 4 extends ReleephFieldSpecification { 5 6 public function getFieldKey() { 7 return 'commit:apply'; 8 } 9 10 public function getName() { 11 return '__only_for_commit_message!'; 12 } 13 14 public function shouldAppearInPropertyView() { 15 return false; 16 } 17 18 public function shouldAppearOnCommitMessage() { 19 return true; 20 } 21 22 public function renderLabelForCommitMessage() { 23 return $this->renderCommonLabel(); 24 } 25 26 public function renderValueForCommitMessage() { 27 return $this->renderCommonValue( 28 DifferentialReleephRequestFieldSpecification::ACTION_PICKS); 29 } 30 31 public function shouldAppearOnRevertMessage() { 32 return true; 33 } 34 35 public function renderLabelForRevertMessage() { 36 return $this->renderCommonLabel(); 37 } 38 39 public function renderValueForRevertMessage() { 40 return $this->renderCommonValue( 41 DifferentialReleephRequestFieldSpecification::ACTION_REVERTS); 42 } 43 44 private function renderCommonLabel() { 45 return id(new DifferentialReleephRequestFieldSpecification()) 46 ->renderLabelForCommitMessage(); 47 } 48 49 private function renderCommonValue($action) { 50 $rq = 'RQ'.$this->getReleephRequest()->getID(); 51 return "{$action} {$rq}"; 52 } 53 54 }
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 |