Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93833324
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
Sun, Dec 1, 21:13
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 3, 21:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22712223
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