4 class Text_Wiki_Render_Plain_List
extends Text_Wiki_Render
{
8 * Renders a token into text matching the requested format.
10 * This rendering method is syntactically and semantically compliant
11 * with XHTML 1.1 in that sub-lists are part of the previous list item.
15 * @param array $options The "options" portion of the token (second
18 * @return string The text rendered from the token options.
22 function token($options)
24 // make nice variables (type, level, count)
27 // set up indenting so that the results look nice; we do this
28 // in two steps to avoid str_pad mathematics. ;-)
29 $pad = str_pad('', $level, "\t");
30 $pad = str_replace("\t", ' ', $pad);
34 case 'bullet_list_start':
37 case 'bullet_list_end':
43 case 'number_list_start':
46 case 'number_list_end':
52 case 'bullet_item_start':
53 case 'number_item_start':
57 case 'bullet_item_end':
58 case 'number_item_end':
60 // ignore item endings and all other types.
61 // item endings are taken care of by the other types
62 // depending on their place in the list.