public function getContent() { // mass action was set if ($this->tpl->getAssignedValue('massAction') !== null) { $this->tpl->assign('footer', true); } elseif ($this->getPaging() && $this->getNumResults() > $this->getPagingLimit()) { // has paging & more than 1 page $this->tpl->assign('footer', true); } // set the odd and even classes $this->setOddRowAttributes(array('class' => 'odd')); $this->setEvenRowAttributes(array('class' => 'even')); // enable greying out $this->enableGreyingOut(); // execute parent return parent::getContent(); }