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

Source for file Address.php

Documentation is available at Address.php

  1. <?php
  2.  
  3. /**
  4.  *
  5.  * Address rule end renderer for Xhtml
  6.  *
  7.  * PHP versions 4 and 5
  8.  *
  9.  * @category   Text
  10.  *
  11.  * @package    Text_Wiki
  12.  *
  13.  * @author     Michele Tomaiuolo <tomamic@yahoo.it>
  14.  *
  15.  * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
  16.  *
  17.  * @version    CVS: $Id$
  18.  *
  19.  * @link       http://pear.php.net/package/Text_Wiki
  20.  *
  21.  */
  22.  
  23.  
  24.     var $conf = array(
  25.         'css' => null
  26.     );
  27.  
  28.     /**
  29.     *
  30.     * Renders a token into text matching the requested format.
  31.     *
  32.     * @access public
  33.     *
  34.     * @param array $options The "options" portion of the token (second
  35.     *  element).
  36.     *
  37.     * @return string The text rendered from the token options.
  38.     *
  39.     */
  40.  
  41.     function token($options)
  42.     {
  43.         if ($options['type'== 'start'{
  44.             $css $this->formatConf(' class="%s"''css');
  45.             return "<address$css>";
  46.         }
  47.  
  48.         if ($options['type'== 'end'{
  49.             return '</address>';
  50.         }
  51.     }
  52. }
  53. ?>

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