Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransaction.php
Show All 26 Lines | final class PhabricatorAuditTransaction | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return PhabricatorRepositoryCommitPHIDType::TYPECONST; | return PhabricatorRepositoryCommitPHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | public function getApplicationTransactionCommentObject() { | ||||
return new PhabricatorAuditTransactionComment(); | return new PhabricatorAuditTransactionComment(); | ||||
} | } | ||||
public function getApplicationTransactionViewObject() { | |||||
return new PhabricatorAuditTransactionView(); | |||||
} | |||||
public function getRemarkupBlocks() { | public function getRemarkupBlocks() { | ||||
$blocks = parent::getRemarkupBlocks(); | $blocks = parent::getRemarkupBlocks(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_COMMIT: | case self::TYPE_COMMIT: | ||||
$data = $this->getNewValue(); | $data = $this->getNewValue(); | ||||
$blocks[] = $data['description']; | $blocks[] = $data['description']; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |