예제 #1
0
 public function render()
 {
     $width = $this->getWidth();
     $result = array();
     foreach ($this->children as $widget) {
         $result = array_merge($result, $widget->render());
     }
     return parent::renderContent($result);
 }
예제 #2
0
 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);
 }