Differential D12806 Diff 30846 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
| Show First 20 Lines • Show All 1,067 Lines • ▼ Show 20 Lines | $view = id(new PhabricatorApplicationTransactionTextDiffDetailView()) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->setOldText($old) | ->setOldText($old) | ||||
| ->setNewText($new); | ->setNewText($new); | ||||
| return $view->render(); | return $view->render(); | ||||
| } | } | ||||
| public function attachTransactionGroup(array $group) { | public function attachTransactionGroup(array $group) { | ||||
| assert_instances_of($group, 'PhabricatorApplicationTransaction'); | assert_instances_of($group, __CLASS__); | ||||
| $this->transactionGroup = $group; | $this->transactionGroup = $group; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getTransactionGroup() { | public function getTransactionGroup() { | ||||
| return $this->transactionGroup; | return $this->transactionGroup; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
| $body[] = $xaction_body; | $body[] = $xaction_body; | ||||
| } | } | ||||
| if ($xaction->shouldHideForMail($xactions)) { | if ($xaction->shouldHideForMail($xactions)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $old_target = $xaction->getRenderingTarget(); | $old_target = $xaction->getRenderingTarget(); | ||||
| $new_target = PhabricatorApplicationTransaction::TARGET_TEXT; | $new_target = self::TARGET_TEXT; | ||||
| $xaction->setRenderingTarget($new_target); | $xaction->setRenderingTarget($new_target); | ||||
| if ($publisher->getRenderWithImpliedContext()) { | if ($publisher->getRenderWithImpliedContext()) { | ||||
| $text[] = $xaction->getTitle(); | $text[] = $xaction->getTitle(); | ||||
| } else { | } else { | ||||
| $text[] = $xaction->getTitleForFeed(); | $text[] = $xaction->getTitleForFeed(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||