3 final class PhabricatorMacroAudioTransaction
4 extends PhabricatorMacroTransactionType
{
6 const TRANSACTIONTYPE
= 'macro:audio';
8 public function generateOldValue($object) {
9 return $object->getAudioPHID();
12 public function applyInternalEffects($object, $value) {
13 $object->setAudioPHID($value);
16 public function extractFilePHIDs($object, $value) {
17 $file_phids = array();
20 $file_phids[] = $value;
26 public function getTitle() {
27 $new = $this->getNewValue();
28 $old = $this->getOldValue();
31 '%s attached audio: %s.',
32 $this->renderAuthor(),
33 $this->renderHandle($new));
36 '%s changed the audio for this macro from %s to %s.',
37 $this->renderAuthor(),
38 $this->renderHandle($old),
39 $this->renderHandle($new));
43 public function getTitleForFeed() {
44 $new = $this->getNewValue();
45 $old = $this->getOldValue();
48 '%s attached audio to %s: %s.',
49 $this->renderAuthor(),
50 $this->renderObject(),
51 $this->renderHandle($new));
54 '%s changed the audio for %s from %s to %s.',
55 $this->renderAuthor(),
56 $this->renderObject(),
57 $this->renderHandle($old),
58 $this->renderHandle($new));
62 public function getIcon() {