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

Source for file ipEcho.php

Documentation is available at ipEcho.php

  1. <?php
  2. /**
  3.  * This is an example of what a plugin could look like. Required functions are _type() and invoke()
  4.  */
  5. /**
  6.  * ipEcho plugin class. Echo out the users IP address
  7.  * @author Christopher Troup <mini@chatetheory.com>
  8.  * @package phpUserTrack
  9.  * @subpackage Plugins
  10.  */
  11. class ipEcho extends plugins {
  12.     
  13.     function ipEcho({
  14.     }
  15.     
  16.     /**
  17.      * Invoke the plugin, echo out IP address
  18.      * @param string $ip IP Address
  19.      */
  20.     function invoke($ip{
  21.         echo $ip->getIp();
  22.     }
  23.     
  24.     /**
  25.      * The type of plugin
  26.      * @return string
  27.      */
  28.     function _type({
  29.         return 'ip.post';
  30.     }
  31.  
  32. }
  33.     
  34. ?>

Documentation generated on Tue, 06 Nov 2007 09:21:55 -0800 by phpDocumentor 1.4.0a2