Path: blob/master/src/applications/diviner/renderer/DivinerRenderer.php
12256 views
<?php12abstract class DivinerRenderer extends Phobject {34private $publisher;5private $atomStack = array();67public function setPublisher($publisher) {8$this->publisher = $publisher;9return $this;10}1112public function getPublisher() {13return $this->publisher;14}1516public function getConfig($key, $default = null) {17return $this->getPublisher()->getConfig($key, $default);18}1920protected function pushAtomStack(DivinerAtom $atom) {21$this->atomStack[] = $atom;22return $this;23}2425protected function peekAtomStack() {26return end($this->atomStack);27}2829protected function popAtomStack() {30array_pop($this->atomStack);31return $this;32}3334abstract public function renderAtom(DivinerAtom $atom);35abstract public function renderAtomSummary(DivinerAtom $atom);36abstract public function renderAtomIndex(array $refs);37abstract public function getHrefForAtomRef(DivinerAtomRef $ref);3839}404142