Differential D17089 Diff 41106 src/applications/differential/customfield/DifferentialBlameRevisionField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialBlameRevisionField.php
| Show All 26 Lines | public function shouldAppearInPropertyView() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function renderPropertyViewLabel() { | public function renderPropertyViewLabel() { | ||||
| return $this->getFieldName(); | return $this->getFieldName(); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | public function renderPropertyViewValue(array $handles) { | ||||
| if (!strlen($this->getValue())) { | |||||
| return null; | |||||
| } | |||||
| return $this->getValue(); | return $this->getValue(); | ||||
| } | } | ||||
| public function shouldAppearInEditView() { | public function shouldAppearInEditView() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAppearInApplicationTransactions() { | public function shouldAppearInApplicationTransactions() { | ||||
| ▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | return pht( | ||||
| $xaction->renderHandleLink($author_phid), | $xaction->renderHandleLink($author_phid), | ||||
| $xaction->renderHandleLink($object_phid)); | $xaction->renderHandleLink($object_phid)); | ||||
| } | } | ||||
| public function shouldAppearInCommitMessage() { | public function shouldAppearInCommitMessage() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAllowEditInCommitMessage() { | |||||
| return true; | |||||
| } | |||||
| public function shouldOverwriteWhenCommitMessageIsEdited() { | |||||
| return true; | |||||
| } | |||||
| public function getCommitMessageLabels() { | |||||
| return array( | |||||
| 'Blame Revision', | |||||
| 'Blame Rev', | |||||
| ); | |||||
| } | |||||
| public function renderCommitMessageValue(array $handles) { | |||||
| return $this->getValue(); | |||||
| } | |||||
| public function shouldAppearInConduitDictionary() { | public function shouldAppearInConduitDictionary() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAppearInConduitTransactions() { | public function shouldAppearInConduitTransactions() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| protected function newConduitEditParameterType() { | protected function newConduitEditParameterType() { | ||||
| return new ConduitStringParameterType(); | return new ConduitStringParameterType(); | ||||
| } | } | ||||
| } | } | ||||