Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104788208
PhabricatorAuditTransactionComment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Mar 12, 09:47
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Mar 14, 09:47 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
24853422
Attached To
rPH Phabricator
PhabricatorAuditTransactionComment.php
View Options
<?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
];
$config
[
self
::
CONFIG_KEY_SCHEMA
]
=
array
(
'key_path'
=>
array
(
'columns'
=>
array
(
'pathID'
),
),
'key_draft'
=>
array
(
'columns'
=>
array
(
'authorPHID'
,
'transactionPHID'
),
),
'key_commit'
=>
array
(
'columns'
=>
array
(
'commitPHID'
),
),
'key_legacy'
=>
array
(
'columns'
=>
array
(
'legacyCommentID'
),
),
)
+
$config
[
self
::
CONFIG_KEY_SCHEMA
];
return
$config
;
}
}
Event Timeline
Log In to Comment