Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104833687
DivinerRenderer.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
Wed, Mar 12, 18:24
Size
920 B
Mime Type
text/x-php
Expires
Fri, Mar 14, 18:24 (2 d)
Engine
blob
Format
Raw Data
Handle
24861999
Attached To
rPH Phabricator
DivinerRenderer.php
View Options
<?php
abstract
class
DivinerRenderer
{
private
$publisher
;
private
$atomStack
=
array
();
public
function
setPublisher
(
$publisher
)
{
$this
->
publisher
=
$publisher
;
return
$this
;
}
public
function
getPublisher
()
{
return
$this
->
publisher
;
}
public
function
getConfig
(
$key
,
$default
=
null
)
{
return
$this
->
getPublisher
()->
getConfig
(
$key
,
$default
);
}
protected
function
pushAtomStack
(
DivinerAtom
$atom
)
{
$this
->
atomStack
[]
=
$atom
;
return
$this
;
}
protected
function
peekAtomStack
()
{
return
end
(
$this
->
atomStack
);
}
protected
function
popAtomStack
()
{
array_pop
(
$this
->
atomStack
);
return
$this
;
}
abstract
public
function
renderAtom
(
DivinerAtom
$atom
);
abstract
public
function
renderAtomSummary
(
DivinerAtom
$atom
);
abstract
public
function
renderAtomIndex
(
array
$refs
);
abstract
public
function
getHrefForAtomRef
(
DivinerAtomRef
$ref
);
}
Event Timeline
Log In to Comment