3 final class PhabricatorRepositoryNotifyTransaction
4 extends PhabricatorRepositoryTransactionType
{
6 const TRANSACTIONTYPE
= 'repo:notify';
8 public function generateOldValue($object) {
9 return (int)!$object->getDetail('herald-disabled');
12 public function generateNewValue($object, $value) {
16 public function applyInternalEffects($object, $value) {
17 $object->setDetail('herald-disabled', (int)!$value);
20 public function getTitle() {
21 $new = $this->getNewValue();
25 '%s enabled publishing for this repository.',
26 $this->renderAuthor());
29 '%s disabled publishing for this repository.',
30 $this->renderAuthor());