Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacServiceTransaction.php
<?php | <?php | ||||
final class AlmanacServiceTransaction | final class AlmanacServiceTransaction | ||||
extends PhabricatorApplicationTransaction { | extends AlmanacTransaction { | ||||
const TYPE_NAME = 'almanac:service:name'; | const TYPE_NAME = 'almanac:service:name'; | ||||
const TYPE_LOCK = 'almanac:service:lock'; | const TYPE_LOCK = 'almanac:service:lock'; | ||||
public function getApplicationName() { | |||||
return 'almanac'; | |||||
} | |||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return AlmanacServicePHIDType::TYPECONST; | return AlmanacServicePHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | |||||
return null; | |||||
} | |||||
public function getTitle() { | public function getTitle() { | ||||
$author_phid = $this->getAuthorPHID(); | $author_phid = $this->getAuthorPHID(); | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_NAME: | case self::TYPE_NAME: | ||||
Show All 29 Lines |