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

Source for file Wikilink.php

Documentation is available at Wikilink.php

  1. <?php
  2.  
  3. class Text_Wiki_Render_Tiki_Wikilink extends Text_Wiki_Render {
  4.     
  5.     /**
  6.     * 
  7.     * Renders a token into XHTML.
  8.     * 
  9.     * @access public
  10.     * 
  11.     * @param array $options The "options" portion of the token (second
  12.     *  element).
  13.     * 
  14.     * @return string The text rendered from the token options.
  15.     * 
  16.     */
  17.     
  18.     function token($options)
  19.     {
  20.         if (isset($options['type'])) {
  21.             if ($options['type'== 'start'{
  22.                 return '(('.$options['page'].
  23.                     (strlen($options['anchor']'#'.$options['anchor''').
  24.                     (strlen($options['text']/*&& $options['page'] != $options['text']*/ '|' '');
  25.             else {
  26.                 return '))';
  27.             }
  28.         else {
  29.             return '(('.$options['page'].
  30.                 (strlen($options['anchor']'#'.$options['anchor''').
  31.                 (strlen($options['text']&& $options['page'!= $options['text''|' $options['text''').
  32.                 '))';
  33.         }
  34.     }
  35. }
  36. ?>

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