1<?php
2/**
3* Plugin nspages : Displays nicely a list of the pages of a namespace
4 *
5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 */
7
8if(!defined('DOKU_INC')) die();
9require_once 'printer.php';
10
11class nspages_printerOneLine extends nspages_printer {
12    function __construct($plugin, $mode, $renderer, $data){
13        parent::__construct($plugin, $mode, $renderer, $data);
14    }
15
16    function _print($tab, $type) {
17        $sep = '';
18        foreach($tab as $item) {
19            $this->renderer->cdata($sep);
20            $this->_printElementLink($item);
21            $sep = ', ';
22        }
23    }
24
25    function printTransition(){
26      $this->renderer->cdata(', ');
27    }
28}
29