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

Source for file Revise.php

Documentation is available at Revise.php

  1. <?php
  2.  
  3.     
  4.     var $conf = array(
  5.         'css_ins' => null,
  6.         'css_del' => null
  7.     );
  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.         if ($options['type'== 'del_start'{
  26.             $css $this->formatConf(' class="%s"''css_del');
  27.             return "<del$css>";
  28.         }
  29.         
  30.         if ($options['type'== 'del_end'{
  31.             return "</del>";
  32.         }
  33.         
  34.         if ($options['type'== 'ins_start'{
  35.             $css $this->formatConf(' class="%s"''css_ins');
  36.             return "<ins$css>";
  37.         }
  38.         
  39.         if ($options['type'== 'ins_end'{
  40.             return "</ins>";
  41.         }
  42.     }
  43. }
  44. ?>

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