/** * Create the snippets content * * This is a stub function either override getHtmlOutput() or override render() * * @param \Zend_View_Abstract $view Just in case it is needed here * @return \MUtil_Html_HtmlInterface Something that can be rendered */ public function getHtmlOutput(\Zend_View_Abstract $view) { if ($this->roundId) { $htmlDiv = \MUtil_Html::div(); if ($this->showTitle) { $htmlDiv->h3(sprintf($this->_('%s round'), $this->trackEngine->getName())); } $table = parent::getHtmlOutput($view); $this->applyHtmlAttributes($table); // Make sure deactivated rounds are show as deleted foreach ($table->tbody() as $tr) { $skip = true; foreach ($tr as $td) { if ($skip) { $skip = false; } else { $td->appendAttrib('class', $table->getRepeater()->row_class); } } } if ($this->showMenu) { $table->tfrow($this->getMenuList(), array('class' => 'centerAlign')); } $htmlDiv[] = $table; return $htmlDiv; } else { $this->addMessage($this->_('No round specified.')); } }