示例#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;
 }