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

Source for file Freelink.php

Documentation is available at Freelink.php

  1. <?php
  2.  
  3.     
  4.     var $conf = array(
  5.         'pages' => array(),
  6.         'view_url' => 'http://example.com/index.php?page=%s',
  7.         'new_url'  => 'http://example.com/new.php?page=%s',
  8.         'new_text' => '?'
  9.     );
  10.     
  11.     
  12.     /**
  13.     * 
  14.     * Renders a token into text matching the requested format.
  15.     * 
  16.     * @access public
  17.     * 
  18.     * @param array $options The "options" portion of the token (second
  19.     *  element).
  20.     * 
  21.     * @return string The text rendered from the token options.
  22.     * 
  23.     */
  24.     
  25.     function token($options)
  26.     {
  27.         // get nice variable names (page, text, anchor)
  28.         extract($options);
  29.         
  30.         return "$text\\footnote\{$anchor";
  31.     }
  32. }
  33. ?>

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