Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F434757
LegalpadTransactionComment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 6:19 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
62535
Default Alt Text
LegalpadTransactionComment.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment