Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116801331
PholioImage.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, Jun 9, 08:49
Size
911 B
Mime Type
text/x-php
Expires
Wed, Jun 11, 08:49 (2 d)
Engine
blob
Format
Raw Data
Handle
26676110
Attached To
rPH Phabricator
PholioImage.php
View Options
<?php
/**
* @group pholio
*/
final
class
PholioImage
extends
PholioDAO
implements
PhabricatorMarkupInterface
{
const
MARKUP_FIELD_DESCRIPTION
=
'markup:description'
;
protected
$mockID
;
protected
$filePHID
;
protected
$name
=
''
;
protected
$description
=
''
;
protected
$sequence
;
/* -( PhabricatorMarkupInterface )----------------------------------------- */
public
function
getMarkupFieldKey
(
$field
)
{
$hash
=
PhabricatorHash
::
digest
(
$this
->
getMarkupText
(
$field
));
return
'M:'
.
$hash
;
}
public
function
newMarkupEngine
(
$field
)
{
return
PhabricatorMarkupEngine
::
newMarkupEngine
(
array
());
}
public
function
getMarkupText
(
$field
)
{
return
$this
->
getDescription
();
}
public
function
didMarkupText
(
$field
,
$output
,
PhutilMarkupEngine
$engine
)
{
return
$output
;
}
public
function
shouldUseMarkupCache
(
$field
)
{
return
(
bool
)
$this
->
getID
();
}
}
Event Timeline
Log In to Comment