mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-01 23:19:15 +01:00
Summary: Ref T1191. This fills in some more features and gets audit and auth nearly generating reasonable expected schemata. Test Plan: See screenshots. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10500
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorAuditTransactionComment
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
protected $commitPHID;
|
|
protected $pathID;
|
|
protected $isNewFile = 0;
|
|
protected $lineNumber = 0;
|
|
protected $lineLength = 0;
|
|
protected $fixedState;
|
|
protected $hasReplies = 0;
|
|
protected $replyToCommentPHID;
|
|
protected $legacyCommentID;
|
|
|
|
public function getApplicationTransactionObject() {
|
|
return new PhabricatorAuditTransaction();
|
|
}
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
// Only cache submitted comments.
|
|
return ($this->getTransactionPHID() != null);
|
|
}
|
|
|
|
public function getConfiguration() {
|
|
$config = parent::getConfiguration();
|
|
$config[self::CONFIG_COLUMN_SCHEMA] = array(
|
|
'commitPHID' => 'phid?',
|
|
'pathID' => 'id?',
|
|
'isNewFile' => 'bool',
|
|
'lineNumber' => 'uint32',
|
|
'lineLength' => 'uint32',
|
|
'fixedState' => 'text12?',
|
|
'hasReplies' => 'bool',
|
|
'replyToCommentPHID' => 'phid?',
|
|
'legacyCommentID' => 'id?',
|
|
) + $config[self::CONFIG_COLUMN_SCHEMA];
|
|
return $config;
|
|
}
|
|
|
|
}
|