/** * Set the footer of the browse table. * * Overrule this function to set the header differently, without * having to recode the core table building code. * * @param \MUtil_Model_Bridge_VerticalTableBridge $bridge * @param \MUtil_Model_ModelAbstract $model * @return void */ protected function setShowTableFooter(\MUtil_Model_Bridge_VerticalTableBridge $bridge, \MUtil_Model_ModelAbstract $model) { if ($model instanceof RoundModel) { $this->useCount = $model->getStartCount($this->roundId); if ($this->useCount) { $this->addMessage(sprintf($this->plural('This round has been completed %s time.', 'This round has been completed %s times.', $this->useCount), $this->useCount)); $this->addMessage($this->_('This round cannot be deleted, only deactivated.')); $this->deleteQuestion = $this->_('Do you want to deactivate this round?'); $this->displayTitle = $this->_('Deactivate round'); } } parent::setShowTableFooter($bridge, $model); }