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

Source for file Interwiki.php

Documentation is available at Interwiki.php

  1. <?php
  2.  
  3.     
  4.     /**
  5.     * 
  6.     * Renders a token into text matching the requested format.
  7.     * 
  8.     * @access public
  9.     * 
  10.     * @param array $options The "options" portion of the token (second
  11.     *  element).
  12.     * 
  13.     * @return string The text rendered from the token options.
  14.     * 
  15.     */
  16.     
  17.     function token($options)
  18.     {
  19.         if (isset($options['url'])) {
  20.             // calculated by the parser (e.g. Mediawiki)
  21.             $href $options['url'];
  22.         else {
  23.             $href $options['site'':' $options['page'];
  24.         }
  25.         return $options['text'' (' $href ')';
  26.     }
  27. }
  28. ?>

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