Changeset View
Changeset View
Standalone View
Standalone View
src/view/fuel/FuelGridCellView.php
| <?php | <?php | ||||
| final class FuelGridCellView | final class FuelGridCellView | ||||
| extends FuelView { | extends FuelComponentView { | ||||
| private $content; | private $content; | ||||
| public function setContent($content) { | public function setContent($content) { | ||||
| $this->content = $content; | $this->content = $content; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getContent() { | public function getContent() { | ||||
| return $this->content; | return $this->content; | ||||
| } | } | ||||
| public function render() { | public function render() { | ||||
| $content = $this->getContent(); | $content = $this->getContent(); | ||||
| return phutil_tag( | return $this->newComponentTag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'fuel-grid-cell', | 'class' => 'fuel-grid-cell', | ||||
| ), | ), | ||||
| $content); | $content); | ||||
| } | } | ||||
| } | } | ||||