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

Source for file Revise.php

Documentation is available at Revise.php

  1. <?php
  2.  
  3. //Not in Tiki
  4. class Text_Wiki_Render_Tiki_Revise extends Text_Wiki_Render {
  5.     
  6.     /**
  7.     * 
  8.     * Renders a token into text matching the requested format.
  9.     * 
  10.     * @access public
  11.     * 
  12.     * @param array $options The "options" portion of the token (second
  13.     *  element).
  14.     * 
  15.     * @return string The text rendered from the token options.
  16.     * 
  17.     */
  18.     
  19.     function token($options)
  20.     {
  21.         switch($options['type']{
  22.         case 'del_start':
  23.             return '<del>';
  24.             break;
  25.         case 'del_end':
  26.             return '</del>';
  27.             break;
  28.         case 'ins_start':
  29.             return '<ins>';
  30.             break;
  31.         case 'ins_end':
  32.             return '</ins>';
  33.             break;
  34.         }
  35.     }
  36. }
  37. ?>

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