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.         $pad "    ";
  27.         
  28.         switch ($type{
  29.         
  30.         case 'list_start':
  31.             $css $this->formatConf(' class="%s"''css_dl');
  32.             return "<dl$css>\n";
  33.             break;
  34.         
  35.         case 'list_end':
  36.             return "</dl>\n\n";
  37.             break;
  38.         
  39.         case 'term_start':
  40.             $css $this->formatConf(' class="%s"''css_dt');
  41.             return $pad . "<dt$css>";
  42.             break;
  43.         
  44.         case 'term_end':
  45.             return "</dt>\n";
  46.             break;
  47.         
  48.         case 'narr_start':
  49.             $css $this->formatConf(' class="%s"''css_dd');
  50.             return $pad $pad . "<dd$css>";
  51.             break;
  52.         
  53.         case 'narr_end':
  54.             return "</dd>\n";
  55.             break;
  56.         
  57.         default:
  58.             return '';
  59.         
  60.         }
  61.     }
  62. }
  63. ?>

Documentation generated on Mon, 11 Mar 2019 14:28:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.