Differential D20432 Diff 48785 src/applications/repository/xaction/PhabricatorRepositoryPermanentRefsTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/xaction/PhabricatorRepositoryPermanentRefsTransaction.php
- This file was moved from src/applications/repository/xaction/PhabricatorRepositoryAutocloseOnlyTransaction.php.
<?php | <?php | ||||
final class PhabricatorRepositoryAutocloseOnlyTransaction | final class PhabricatorRepositoryPermanentRefsTransaction | ||||
extends PhabricatorRepositoryTransactionType { | extends PhabricatorRepositoryTransactionType { | ||||
const TRANSACTIONTYPE = 'repo:autoclose-only'; | const TRANSACTIONTYPE = 'repo:autoclose-only'; | ||||
public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
return $object->getAutocloseOnlyRules(); | return $object->getPermanentRefRules(); | ||||
} | } | ||||
public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
$object->setAutocloseOnlyRules($value); | $object->setPermanentRefRules($value); | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
if (!$new) { | if (!$new) { | ||||
return pht( | return pht( | ||||
Show All 21 Lines |