Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1600081
PholioImage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
private
$file
;
/* -( 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
();
}
public
function
attachFile
(
PhabricatorFile
$file
)
{
$this
->
file
=
$file
;
return
$this
;
}
public
function
getFile
()
{
if
(
$this
->
file
===
null
)
{
throw
new
Exception
(
"Call attachFile() before getFile()!"
);
}
return
$this
->
file
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 16, 9:20 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
362227
Default Alt Text
PholioImage.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment