public function render() { $width = $this->getWidth(); $result = array(); foreach ($this->children as $widget) { $result = array_merge($result, $widget->render()); } return parent::renderContent($result); }
public function render() { $result = array(); $lines = explode("\n", $this->text); $width = $this->getWidth(); foreach ($lines as $line) { if ($this->uppercase) { $line = strtoupper($line); } $result[] = $line; } return parent::renderContent($result); }