Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90720556
PonderComment.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
Mon, Nov 4, 04:07
Size
870 B
Mime Type
text/x-php
Expires
Wed, Nov 6, 04:07 (2 d)
Engine
blob
Format
Raw Data
Handle
22124764
Attached To
rPH Phabricator
PonderComment.php
View Options
<?php
final
class
PonderComment
extends
PonderDAO
implements
PhabricatorMarkupInterface
{
const
MARKUP_FIELD_CONTENT
=
'markup:content'
;
protected
$targetPHID
;
protected
$authorPHID
;
protected
$content
;
public
function
getMarkupFieldKey
(
$field
)
{
$hash
=
PhabricatorHash
::
digest
(
$this
->
getMarkupText
(
$field
));
$id
=
$this
->
getID
();
return
"ponder:c{$id}:{$field}:{$hash}"
;
}
public
function
getMarkupText
(
$field
)
{
return
$this
->
getContent
();
}
public
function
newMarkupEngine
(
$field
)
{
return
PhabricatorMarkupEngine
::
getEngine
();
}
public
function
didMarkupText
(
$field
,
$output
,
PhutilMarkupEngine
$engine
)
{
return
$output
;
}
public
function
shouldUseMarkupCache
(
$field
)
{
return
(
bool
)
$this
->
getID
();
}
public
function
getMarkupField
()
{
return
self
::
MARKUP_FIELD_CONTENT
;
}
}
Event Timeline
Log In to Comment