Page MenuHomePhorge

DrydockBlueprintTransaction.php
No OneTemporary

Size
900 B
Referenced Files
None
Subscribers
None

DrydockBlueprintTransaction.php

<?php
final class DrydockBlueprintTransaction
extends PhabricatorApplicationTransaction {
const TYPE_NAME = 'drydock:blueprint:name';
public function getApplicationName() {
return 'drydock';
}
public function getApplicationTransactionType() {
return DrydockPHIDTypeBlueprint::TYPECONST;
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
$author_handle = $this->renderHandleLink($this->getAuthorPHID());
switch ($this->getTransactionType()) {
case self::TYPE_NAME:
if (!strlen($old)) {
return pht(
'%s created this blueprint.',
$author_handle);
} else {
return pht(
'%s renamed this blueprint from "%s" to "%s".',
$author_handle,
$old,
$new);
}
}
return parent::getTitle();
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, May 7, 6:46 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87002
Default Alt Text
DrydockBlueprintTransaction.php (900 B)

Event Timeline