Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93074731
PhabricatorAuditComment.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, 00:35
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 28, 00:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22568124
Attached To
rPH Phabricator
PhabricatorAuditComment.php
View Options
<?php
final
class
PhabricatorAuditComment
extends
PhabricatorAuditDAO
implements
PhabricatorMarkupInterface
{
const
METADATA_ADDED_AUDITORS
=
'added-auditors'
;
const
METADATA_ADDED_CCS
=
'added-ccs'
;
const
MARKUP_FIELD_BODY
=
'markup:body'
;
protected
$phid
;
protected
$actorPHID
;
protected
$targetPHID
;
protected
$action
;
protected
$content
;
protected
$metadata
=
array
();
public
static
function
loadComments
(
PhabricatorUser
$viewer
,
$commit_phid
)
{
return
id
(
new
PhabricatorAuditComment
())->
loadAllWhere
(
'targetPHID = %s'
,
$commit_phid
);
}
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_SERIALIZATION
=>
array
(
'metadata'
=>
self
::
SERIALIZATION_JSON
,
),
self
::
CONFIG_AUX_PHID
=>
true
,
)
+
parent
::
getConfiguration
();
}
public
function
generatePHID
()
{
return
PhabricatorPHID
::
generateNewPHID
(
'ACMT'
);
}
/* -( PhabricatorMarkupInterface Implementation )-------------------------- */
public
function
getMarkupFieldKey
(
$field
)
{
return
'AC:'
.
$this
->
getID
();
}
public
function
newMarkupEngine
(
$field
)
{
return
PhabricatorMarkupEngine
::
newDiffusionMarkupEngine
();
}
public
function
getMarkupText
(
$field
)
{
return
$this
->
getContent
();
}
public
function
didMarkupText
(
$field
,
$output
,
PhutilMarkupEngine
$engine
)
{
return
$output
;
}
public
function
shouldUseMarkupCache
(
$field
)
{
return
(
bool
)
$this
->
getID
();
}
}
Event Timeline
Log In to Comment