Differential D17050 Diff 41015 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 271 Lines • ▼ Show 20 Lines | abstract class PhabricatorModularTransactionType | ||||
| final protected function isEmptyTextTransaction($value, array $xactions) { | final protected function isEmptyTextTransaction($value, array $xactions) { | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| $value = $xaction->getNewValue(); | $value = $xaction->getNewValue(); | ||||
| } | } | ||||
| return !strlen($value); | return !strlen($value); | ||||
| } | } | ||||
| private function isTextMode() { | protected function isTextMode() { | ||||
| $target = $this->getStorage()->getRenderingTarget(); | $target = $this->getStorage()->getRenderingTarget(); | ||||
| return ($target == PhabricatorApplicationTransaction::TARGET_TEXT); | return ($target == PhabricatorApplicationTransaction::TARGET_TEXT); | ||||
| } | } | ||||
| final protected function newRemarkupChange() { | final protected function newRemarkupChange() { | ||||
| return id(new PhabricatorTransactionRemarkupChange()) | return id(new PhabricatorTransactionRemarkupChange()) | ||||
| ->setTransaction($this->getStorage()); | ->setTransaction($this->getStorage()); | ||||
| } | } | ||||
| final protected function isCreateTransaction() { | final protected function isCreateTransaction() { | ||||
| return $this->getStorage()->getIsCreateTransaction(); | return $this->getStorage()->getIsCreateTransaction(); | ||||
| } | } | ||||
| } | } | ||||