/** * Takes the gadget to output, and depending on its content type calls either outputHtml- * or outputUrlGadget * * @param Gadget $gadget gadget to render * @param string $view the view to render (only valid with a html content type) */ private function outputGadget($gadget, $view) { switch ($gadget->getContentType()) { case 'HTML': $this->outputHtmlGadget($gadget, $view); break; case 'URL': $this->outputUrlGadget($gadget); break; } }