3 final class ManiphestTaskDescriptionTransaction
4 extends ManiphestTaskTransactionType
{
6 const TRANSACTIONTYPE
= 'description';
8 public function generateOldValue($object) {
9 return $object->getDescription();
12 public function applyInternalEffects($object, $value) {
13 $object->setDescription($value);
16 public function getActionName() {
20 public function getTitle() {
22 '%s updated the task description.',
23 $this->renderAuthor());
26 public function getTitleForFeed() {
28 '%s updated the task description for %s.',
29 $this->renderAuthor(),
30 $this->renderObject());
33 public function hasChangeDetailView() {
37 public function getMailDiffSectionHeader() {
38 return pht('CHANGES TO TASK DESCRIPTION');
41 public function newChangeDetailView() {
42 $viewer = $this->getViewer();
44 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
46 ->setOldText($this->getOldValue())
47 ->setNewText($this->getNewValue());
50 public function newRemarkupChanges() {
53 $changes[] = $this->newRemarkupChange()
54 ->setOldValue($this->getOldValue())
55 ->setNewValue($this->getNewValue());
60 public function getTransactionTypeForConduit($xaction) {
64 public function getFieldValuesForConduit($xaction, $data) {
66 'old' => $xaction->getOldValue(),
67 'new' => $xaction->getNewValue(),