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.     var $conf = array(
  5.                       'css_dl' => null,
  6.                       'css_dt' => null,
  7.                       'css_dd' => null
  8.                       );
  9.  
  10.     /**
  11.      *
  12.      * Renders a token into text matching the requested format.
  13.      *
  14.      * @access public
  15.      *
  16.      * @param array $options The "options" portion of the token (second
  17.      *  element).
  18.      *
  19.      * @return string The text rendered from the token options.
  20.      *
  21.      */
  22.  
  23.     function token($options)
  24.     {
  25.         $type $options['type'];
  26.         switch ($type)
  27.             {
  28.             case 'list_start':
  29.                 return "\\begin{description}\n";
  30.  
  31.             case 'list_end':
  32.                 return "\\end{description}\n\n";
  33.  
  34.             case 'term_start':
  35.                 return '\item[';
  36.  
  37.             case 'term_end':
  38.                 return '] ';
  39.  
  40.             case 'narr_start':
  41.                 return '{';
  42.  
  43.             case 'narr_end':
  44.                 return "}\n";
  45.  
  46.             default:
  47.                 return '';
  48.  
  49.             }
  50.     }
  51. }
  52. ?>

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