Differential D17020 Diff 41026 src/applications/release/xaction/ReleaseChangeRequestTransactionType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/release/xaction/ReleaseChangeRequestTransactionType.php
- This file was added.
<?php | |||||
abstract class ReleaseChangeRequestTransactionType | |||||
extends PhabricatorModularTransactionType { | |||||
public function getIcon() { | |||||
return 'fa-compress'; | |||||
} | |||||
// TODO move to parent class | |||||
public function expandTransaction($object) { | |||||
return array(); | |||||
} | |||||
public function newChangeDetailView() { | |||||
$viewer = $this->getViewer(); | |||||
$old = $this->getOldValue(); | |||||
$new = $this->getNewValue(); | |||||
$json = new PhutilJSON(); | |||||
return id(new PhabricatorApplicationTransactionTextDiffDetailView()) | |||||
->setViewer($viewer) | |||||
->setOldText($old ? $json->encodeFormatted($old) : null) | |||||
->setNewText($new ? $json->encodeFormatted($new) : null); | |||||
} | |||||
} |