Differential D17191 Diff 41341 src/applications/diffusion/xaction/DiffusionCommitResignTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/xaction/DiffusionCommitResignTransaction.php
| Show All 20 Lines | final class DiffusionCommitResignTransaction | ||||
| public function getColor() { | public function getColor() { | ||||
| return 'orange'; | return 'orange'; | ||||
| } | } | ||||
| protected function getCommitActionOrder() { | protected function getCommitActionOrder() { | ||||
| return 700; | return 700; | ||||
| } | } | ||||
| public function getActionName() { | |||||
| return pht('Resigned'); | |||||
| } | |||||
| public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
| $actor = $this->getActor(); | $actor = $this->getActor(); | ||||
| return !$this->isViewerAnyActiveAuditor($object, $actor); | return !$this->isViewerAnyActiveAuditor($object, $actor); | ||||
| } | } | ||||
| public function applyExternalEffects($object, $value) { | public function applyExternalEffects($object, $value) { | ||||
| $status = PhabricatorAuditStatusConstants::RESIGNED; | $status = PhabricatorAuditStatusConstants::RESIGNED; | ||||
| $actor = $this->getActor(); | $actor = $this->getActor(); | ||||
| Show All 26 Lines | |||||