Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72601219
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
Tue, Jul 16, 02:35
Size
937 B
Mime Type
text/x-php
Expires
Thu, Jul 18, 02:35 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19074964
Attached To
rPH Phabricator
DivinerRenderer.php
View Options
<?php
abstract
class
DivinerRenderer
extends
Phobject
{
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