Path: blob/master/src/applications/legalpad/xaction/LegalpadDocumentPreambleTransaction.php
13464 views
<?php12final class LegalpadDocumentPreambleTransaction3extends LegalpadDocumentTransactionType {45// TODO: This is misspelled! See T13005.6const TRANSACTIONTYPE = 'legalpad:premable';78public function generateOldValue($object) {9return $object->getPreamble();10}1112public function applyInternalEffects($object, $value) {13$object->setPreamble($value);14}1516public function getTitle() {17return pht(18'%s updated the document preamble.',19$this->renderAuthor());20}2122public function getTitleForFeed() {23return pht(24'%s updated the document preamble for %s.',25$this->renderAuthor(),26$this->renderObject());27}2829public function hasChangeDetailView() {30return true;31}3233public function getMailDiffSectionHeader() {34return pht('CHANGES TO DOCUMENT PREAMBLE');35}3637public function newChangeDetailView() {38$viewer = $this->getViewer();3940return id(new PhabricatorApplicationTransactionTextDiffDetailView())41->setViewer($viewer)42->setOldText($this->getOldValue())43->setNewText($this->getNewValue());44}4546public function newRemarkupChanges() {47$changes = array();4849$changes[] = $this->newRemarkupChange()50->setOldValue($this->getOldValue())51->setNewValue($this->getNewValue());5253return $changes;54}555657}585960