Page MenuHomestyx hydra

PhabricatorRepositoryDangerousTransaction.php
No OneTemporary

PhabricatorRepositoryDangerousTransaction.php

<?php
final class PhabricatorRepositoryDangerousTransaction
extends PhabricatorRepositoryTransactionType {
const TRANSACTIONTYPE = 'repo:dangerous';
public function generateOldValue($object) {
return $object->shouldAllowDangerousChanges();
}
public function applyInternalEffects($object, $value) {
$object->setDetail('allow-dangerous-changes', $value);
}
public function getTitle() {
$new = $this->getNewValue();
if ($new) {
return pht(
'%s disabled protection against dangerous changes.',
$this->renderAuthor());
} else {
return pht(
'%s enabled protection against dangerous changes.',
$this->renderAuthor());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 1:20 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430510
Default Alt Text
PhabricatorRepositoryDangerousTransaction.php (708 B)

Event Timeline