Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117727089
PholioPixelComment.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, Jun 15, 13:30
Size
944 B
Mime Type
text/x-php
Expires
Tue, Jun 17, 13:30 (2 d)
Engine
blob
Format
Raw Data
Handle
26769321
Attached To
rPH Phabricator
PholioPixelComment.php
View Options
<?php
/**
* @group pholio
*/
final
class
PholioPixelComment
extends
PholioDAO
implements
PhabricatorMarkupInterface
{
const
MARKUP_FIELD_COMMENT
=
'markup:comment'
;
protected
$mockID
;
protected
$transactionID
;
protected
$authorPHID
;
protected
$imageID
;
protected
$x
;
protected
$y
;
protected
$width
;
protected
$height
;
protected
$comment
;
/* -( PhabricatorMarkupInterface )----------------------------------------- */
public
function
getMarkupFieldKey
(
$field
)
{
return
'MP:'
.
$this
->
getID
();
}
public
function
newMarkupEngine
(
$field
)
{
return
PhabricatorMarkupEngine
::
newMarkupEngine
(
array
());
}
public
function
getMarkupText
(
$field
)
{
return
$this
->
getComment
();
}
public
function
didMarkupText
(
$field
,
$output
,
PhutilMarkupEngine
$engine
)
{
return
$output
;
}
public
function
shouldUseMarkupCache
(
$field
)
{
return
(
$this
->
getID
()
&&
$this
->
getTransactionID
());
}
}
Event Timeline
Log In to Comment