예제 #1
0
 /**
  * @param Control|string $content
  * @return $this
  */
 public function add($content)
 {
     if ($content instanceof Control) {
         $this->content[] = $content->display();
     } else {
         if (is_string($content)) {
             $this->content[] = $content;
         }
     }
     return $this;
 }
예제 #2
0
 /**
  * @return string
  */
 public function render()
 {
     $this->renderer()->mode(Base::RENDER_STANDARD);
     return $this->control->display();
 }
예제 #3
0
 /**
  * @param Control $control
  * @return $this
  */
 public function add(Control $control)
 {
     $this->content[] = $control->display();
     return $this;
 }