<?php
/**
* Plugin nspages : Displays nicely a list of the pages of a namespace
 *
 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */

if(!defined('DOKU_INC')) die();
require_once 'printer.php';

class nspages_printerOneLine extends nspages_printer {
    function __construct($plugin, $mode, $renderer, $data){
        parent::__construct($plugin, $mode, $renderer, $data);
    }

    function _print($tab, $type) {
        $sep = '';
        foreach($tab as $item) {
            $this->renderer->cdata($sep);
            $this->_printElementLink($item);
            $sep = ', ';
        }
    }

    function printTransition(){
      $this->renderer->cdata(', ');
    }
}