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

Source for file Phplookup.php

Documentation is available at Phplookup.php

  1. <?php
  2.  
  3.     
  4.     var $conf = array('target' => '_blank');
  5.     
  6.     /**
  7.     * 
  8.     * Renders a token into text matching the requested format.
  9.     * 
  10.     * @access public
  11.     * 
  12.     * @param array $options The "options" portion of the token (second
  13.     *  element).
  14.     * 
  15.     * @return string The text rendered from the token options.
  16.     * 
  17.     */
  18.     
  19.     function token($options)
  20.     {
  21.         return 'Phplookup: NI';
  22.         
  23.         $text trim($options['text']);
  24.         
  25.         $target $this->getConf('target''');
  26.         if ($target{
  27.             $target = " target=\"$target\"";
  28.         }
  29.         
  30.         return "<a$target href=\"http://php.net/$text\">$text</a>";
  31.     }
  32. }
  33. ?>

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