Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Source for file Deflist.php

Documentation is available at Deflist.php

  1. <?php
  2.  
  3.     
  4.     /**
  5.     * 
  6.     * Renders a token into text matching the requested format.
  7.     * 
  8.     * @access public
  9.     * 
  10.     * @param array $options The "options" portion of the token (second
  11.     *  element).
  12.     * 
  13.     * @return string The text rendered from the token options.
  14.     * 
  15.     */
  16.     
  17.     function token($options)
  18.     {
  19.         $type $options['type'];
  20.         $pad "    ";
  21.         
  22.         switch ($type{
  23.         
  24.         case 'list_start':
  25.             return "\n";
  26.             break;
  27.         
  28.         case 'list_end':
  29.             return "\n\n";
  30.             break;
  31.         
  32.         case 'term_start':
  33.         
  34.             // done!
  35.             return $pad;
  36.             break;
  37.         
  38.         case 'term_end':
  39.             return "\n";
  40.             break;
  41.         
  42.         case 'narr_start':
  43.         
  44.             // done!
  45.             return $pad $pad;
  46.             break;
  47.         
  48.         case 'narr_end':
  49.             return "\n";
  50.             break;
  51.         
  52.         default:
  53.             return '';
  54.         
  55.         }
  56.     }
  57. }
  58. ?>

Documentation generated on Tue, 12 Mar 2019 21:49:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.