Differential D17133 Diff 41202 src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php
| Show All 20 Lines | final class DifferentialRevisionCommandeerTransaction | ||||
| public function getColor() { | public function getColor() { | ||||
| return 'sky'; | return 'sky'; | ||||
| } | } | ||||
| protected function getRevisionActionOrder() { | protected function getRevisionActionOrder() { | ||||
| return 700; | return 700; | ||||
| } | } | ||||
| public function getCommandKeyword() { | |||||
| return 'commandeer'; | |||||
| } | |||||
| public function getCommandAliases() { | |||||
| return array( | |||||
| 'claim', | |||||
| ); | |||||
| } | |||||
| public function getCommandSummary() { | |||||
| return pht('Commadeer a revision.'); | |||||
| } | |||||
| public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
| return $object->getAuthorPHID(); | return $object->getAuthorPHID(); | ||||
| } | } | ||||
| public function generateNewValue($object, $value) { | public function generateNewValue($object, $value) { | ||||
| $actor = $this->getActor(); | $actor = $this->getActor(); | ||||
| return $actor->getPHID(); | return $actor->getPHID(); | ||||
| } | } | ||||
| Show All 35 Lines | |||||