Changeset View
Changeset View
Standalone View
Standalone View
src/view/AphrontTagView.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | abstract class AphrontTagView extends AphrontView { | ||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
return $this->renderChildren(); | return $this->renderChildren(); | ||||
} | } | ||||
protected function willRender() { | |||||
return; | |||||
} | |||||
final public function render() { | final public function render() { | ||||
$this->willRender(); | $this->willRender(); | ||||
$attributes = $this->getTagAttributes(); | $attributes = $this->getTagAttributes(); | ||||
$implode = array('class', 'sigil'); | $implode = array('class', 'sigil'); | ||||
foreach ($implode as $attr) { | foreach ($implode as $attr) { | ||||
if (isset($attributes[$attr])) { | if (isset($attributes[$attr])) { | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |