Differential D8657 Diff 20543 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationTransactionEditor | ||||
| public function setParentMessageID($parent_message_id) { | public function setParentMessageID($parent_message_id) { | ||||
| $this->parentMessageID = $parent_message_id; | $this->parentMessageID = $parent_message_id; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getParentMessageID() { | public function getParentMessageID() { | ||||
| return $this->parentMessageID; | return $this->parentMessageID; | ||||
| } | } | ||||
| protected function getIsNewObject() { | public function getIsNewObject() { | ||||
| return $this->isNewObject; | return $this->isNewObject; | ||||
| } | } | ||||
| protected function getMentionedPHIDs() { | protected function getMentionedPHIDs() { | ||||
| return $this->mentionedPHIDs; | return $this->mentionedPHIDs; | ||||
| } | } | ||||
| public function setIsPreview($is_preview) { | public function setIsPreview($is_preview) { | ||||
| ▲ Show 20 Lines • Show All 1,768 Lines • ▼ Show 20 Lines | protected function buildMailBody( | ||||
| $body = new PhabricatorMetaMTAMailBody(); | $body = new PhabricatorMetaMTAMailBody(); | ||||
| $body->addRawSection(implode("\n", $headers)); | $body->addRawSection(implode("\n", $headers)); | ||||
| foreach ($comments as $comment) { | foreach ($comments as $comment) { | ||||
| $body->addRawSection($comment); | $body->addRawSection($comment); | ||||
| } | } | ||||
| if ($object instanceof PhabricatorCustomFieldInterface) { | |||||
| $field_list = PhabricatorCustomField::getObjectFields( | |||||
| $object, | |||||
| PhabricatorCustomField::ROLE_TRANSACTIONMAIL); | |||||
| $field_list->setViewer($this->getActor()); | |||||
| $field_list->readFieldsFromStorage($object); | |||||
| foreach ($field_list->getFields() as $field) { | |||||
| $field->updateTransactionMailBody( | |||||
| $body, | |||||
| $this, | |||||
| $xactions); | |||||
| } | |||||
| } | |||||
| return $body; | return $body; | ||||
| } | } | ||||
| /* -( Publishing Feed Stories )-------------------------------------------- */ | /* -( Publishing Feed Stories )-------------------------------------------- */ | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines | |||||