Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93185110
LegalpadTransactionComment.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
Tue, Nov 26, 20:44
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 28, 20:44 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22575915
Attached To
rPH Phabricator
LegalpadTransactionComment.php
View Options
<?php
final
class
LegalpadTransactionComment
extends
PhabricatorApplicationTransactionComment
{
protected
$documentID
;
protected
$lineNumber
=
0
;
protected
$lineLength
=
0
;
protected
$fixedState
;
protected
$hasReplies
=
0
;
protected
$replyToCommentPHID
;
public
function
getApplicationTransactionObject
()
{
return
new
LegalpadTransaction
();
}
public
function
shouldUseMarkupCache
(
$field
)
{
// Only cache submitted comments.
return
(
$this
->
getTransactionPHID
()
!=
null
);
}
protected
function
getConfiguration
()
{
$config
=
parent
::
getConfiguration
();
$config
[
self
::
CONFIG_COLUMN_SCHEMA
]
=
array
(
'documentID'
=>
'id?'
,
'lineNumber'
=>
'uint32'
,
'lineLength'
=>
'uint32'
,
'fixedState'
=>
'text12?'
,
'hasReplies'
=>
'bool'
,
'replyToCommentPHID'
=>
'phid?'
,
)
+
$config
[
self
::
CONFIG_COLUMN_SCHEMA
];
$config
[
self
::
CONFIG_KEY_SCHEMA
]
=
array
(
'key_draft'
=>
array
(
'columns'
=>
array
(
'authorPHID'
,
'documentID'
,
'transactionPHID'
),
'unique'
=>
true
,
),
)
+
$config
[
self
::
CONFIG_KEY_SCHEMA
];
return
$config
;
}
}
Event Timeline
Log In to Comment