Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113108456
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
Thu, May 15, 03:11
Size
920 B
Mime Type
text/x-php
Expires
Sat, May 17, 03:11 (2 d)
Engine
blob
Format
Raw Data
Handle
26176568
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