useNumberedList = $useNumberedList; } function _print($tab, $type) { $this->_openList(); $this->_printItems($tab); $this->_closeList(); } private function _openList() { if ( $this->useNumberedList ){ $this->renderer->listo_open(); } else { $this->renderer->listu_open(); } } private function _printItems($tab){ foreach($tab as $item) { $this->_printElement($item); } } private function _closeList() { if ( $this->useNumberedList ){ $this->renderer->listo_close(); } else { $this->renderer->listu_close(); } } }