3 final class DrydockBlueprintDisableTransaction
4 extends DrydockBlueprintTransactionType
{
6 const TRANSACTIONTYPE
= 'drydock:blueprint:disabled';
8 public function generateOldValue($object) {
9 return (bool)$object->getIsDisabled();
12 public function generateNewValue($object, $value) {
16 public function applyInternalEffects($object, $value) {
17 $object->setIsDisabled((int)$value);
20 public function getTitle() {
21 $new = $this->getNewValue();
24 '%s disabled this blueprint.',
25 $this->renderAuthor());
28 '%s enabled this blueprint.',
29 $this->renderAuthor());
33 public function getTitleForFeed() {
34 $new = $this->getNewValue();
38 $this->renderAuthor(),
39 $this->renderObject());
43 $this->renderAuthor(),
44 $this->renderObject());