Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110435611
PhutilRemarkupBlockInterpreter.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
Sat, Apr 26, 08:00
Size
688 B
Mime Type
text/x-php
Expires
Mon, Apr 28, 08:00 (2 d)
Engine
blob
Format
Raw Data
Handle
25765083
Attached To
rPHU libphutil
PhutilRemarkupBlockInterpreter.php
View Options
<?php
/**
* @stable
*/
abstract
class
PhutilRemarkupBlockInterpreter
{
private
$engine
;
final
public
function
setEngine
(
$engine
)
{
$this
->
engine
=
$engine
;
return
$this
;
}
final
public
function
getEngine
()
{
return
$this
->
engine
;
}
/**
* @return string
*/
abstract
public
function
getInterpreterName
();
abstract
public
function
markupContent
(
$content
,
array
$argv
);
protected
function
markupError
(
$string
)
{
if
(
$this
->
getEngine
()->
isTextMode
())
{
return
'('
.
$string
.
')'
;
}
else
{
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'remarkup-interpreter-error'
,
),
$string
);
}
}
}
Event Timeline
Log In to Comment