/** * @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; }
/** * @return string */ public function render() { $this->renderer()->mode(Base::RENDER_STANDARD); return $this->control->display(); }
/** * @param Control $control * @return $this */ public function add(Control $control) { $this->content[] = $control->display(); return $this; }