Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransaction.php
<?php | <?php | ||||
final class PhabricatorAuditTransaction | final class PhabricatorAuditTransaction | ||||
extends PhabricatorApplicationTransaction { | extends PhabricatorModularTransaction { | ||||
const TYPE_COMMIT = 'audit:commit'; | const TYPE_COMMIT = 'audit:commit'; | ||||
const MAILTAG_ACTION_CONCERN = 'audit-action-concern'; | const MAILTAG_ACTION_CONCERN = 'audit-action-concern'; | ||||
const MAILTAG_ACTION_ACCEPT = 'audit-action-accept'; | const MAILTAG_ACTION_ACCEPT = 'audit-action-accept'; | ||||
const MAILTAG_ACTION_RESIGN = 'audit-action-resign'; | const MAILTAG_ACTION_RESIGN = 'audit-action-resign'; | ||||
const MAILTAG_ACTION_CLOSE = 'audit-action-close'; | const MAILTAG_ACTION_CLOSE = 'audit-action-close'; | ||||
const MAILTAG_ADD_AUDITORS = 'audit-add-auditors'; | const MAILTAG_ADD_AUDITORS = 'audit-add-auditors'; | ||||
const MAILTAG_ADD_CCS = 'audit-add-ccs'; | const MAILTAG_ADD_CCS = 'audit-add-ccs'; | ||||
const MAILTAG_COMMENT = 'audit-comment'; | const MAILTAG_COMMENT = 'audit-comment'; | ||||
const MAILTAG_COMMIT = 'audit-commit'; | const MAILTAG_COMMIT = 'audit-commit'; | ||||
const MAILTAG_PROJECTS = 'audit-projects'; | const MAILTAG_PROJECTS = 'audit-projects'; | ||||
const MAILTAG_OTHER = 'audit-other'; | const MAILTAG_OTHER = 'audit-other'; | ||||
public function getApplicationName() { | public function getApplicationName() { | ||||
return 'audit'; | return 'audit'; | ||||
} | } | ||||
public function getBaseTransactionClass() { | |||||
return 'DiffusionCommitTransactionType'; | |||||
} | |||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return PhabricatorRepositoryCommitPHIDType::TYPECONST; | return PhabricatorRepositoryCommitPHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | public function getApplicationTransactionCommentObject() { | ||||
return new PhabricatorAuditTransactionComment(); | return new PhabricatorAuditTransactionComment(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines |