Differential D16481 Diff 39656 src/applications/transactions/storage/PhabricatorModularTransactionType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorModularTransactionType.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | abstract class PhabricatorModularTransactionType | ||||
| public function hasChangeDetailView() { | public function hasChangeDetailView() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function newChangeDetailView() { | public function newChangeDetailView() { | ||||
| throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
| } | } | ||||
| public function newRemarkupChanges() { | |||||
| return array(); | |||||
| } | |||||
| final public function setStorage( | final public function setStorage( | ||||
| PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
| $this->storage = $xaction; | $this->storage = $xaction; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| private function getStorage() { | private function getStorage() { | ||||
| return $this->storage; | return $this->storage; | ||||
| ▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | final protected function isEmptyTextTransaction($value, array $xactions) { | ||||
| return !strlen($value); | return !strlen($value); | ||||
| } | } | ||||
| private function isTextMode() { | private function isTextMode() { | ||||
| $target = $this->getStorage()->getRenderingTarget(); | $target = $this->getStorage()->getRenderingTarget(); | ||||
| return ($target == PhabricatorApplicationTransaction::TARGET_TEXT); | return ($target == PhabricatorApplicationTransaction::TARGET_TEXT); | ||||
| } | } | ||||
| final protected function newRemarkupChange() { | |||||
| return id(new PhabricatorTransactionRemarkupChange()) | |||||
| ->setTransaction($this->getStorage()); | |||||
| } | |||||
| } | } | ||||