renderer =& $renderer; $this->percentWidth = $this->buildWidth($nbCols); $this->plugin = $plugin; $this->anchorName = $anchorName; } private function buildWidth($nbCols){ return (100 / $nbCols) . '%'; } function printHeaderChar($char, $continued = false){ $text = $char; if ( $continued ){ $text .= $this->plugin->getLang('continued'); } $this->renderer->doc .= '
fullAnchor($char, $continued) . 'class="catpagechars'; if ( $continued ){ $this->renderer->doc .= ' continued'; } $this->renderer->doc .= '">' . $text . "
\n"; } private function fullAnchor($char, $continued){ if ( $continued === true || is_null($this->anchorName) ){ return ''; } return 'id="nspages_' . $this->anchorName . '_' . $char . '" '; } function openColumn(){ $this->renderer->doc .= "\n".'
'; } function closeColumn(){ $this->renderer->doc .= "
\n"; } function openListOfItems(){ $this->renderer->doc .= "'; } }