[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ReleephRequestorFieldSpecification 4 extends ReleephFieldSpecification { 5 6 public function getFieldKey() { 7 return 'requestor'; 8 } 9 10 public function getName() { 11 return 'Requestor'; 12 } 13 14 public function getRequiredHandlePHIDsForPropertyView() { 15 $phids = array(); 16 17 $phid = $this->getReleephRequest()->getRequestUserPHID(); 18 if ($phid) { 19 $phids[] = $phid; 20 } 21 22 return $phids; 23 } 24 25 public function renderPropertyViewValue(array $handles) { 26 return $this->renderHandleList($handles); 27 } 28 29 public function shouldAppearOnCommitMessage() { 30 return true; 31 } 32 33 public function shouldAppearOnRevertMessage() { 34 return true; 35 } 36 37 public function renderLabelForCommitMessage() { 38 return 'Requested By'; 39 } 40 41 public function renderValueForCommitMessage() { 42 $phid = $this->getReleephRequest()->getRequestUserPHID(); 43 $handle = id(new PhabricatorHandleQuery()) 44 ->setViewer($this->getUser()) 45 ->withPHIDs(array($phid)) 46 ->executeOne(); 47 return $handle->getName(); 48 } 49 50 }
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 |