phpDocumentor phpIcqBot
[ class tree: phpIcqBot ] [ index: phpIcqBot ] [ all elements ]

Source for file example.module.php

Documentation is available at example.module.php

  1. <?php
  2. /**
  3.  * phpIcqBot Example Module
  4.  * 
  5.  * Sample module for phpIcqBot
  6.  * 
  7.  * @author Jector <no.one.on@gmail.com>
  8.  * @version 0.2
  9.  * @package phpIcqBot
  10.  * @todo add more samples
  11.  */
  12.  
  13.  
  14. {
  15.  
  16.     /**
  17.      * Standart initialization function
  18.      */
  19.     public function init()
  20.     {
  21.         $this->commands->addCommand($this'example'array('ex'));
  22.     }
  23.     
  24.     /**
  25.      * Standart deinitialization function
  26.      */
  27.     public function deinit()
  28.     {
  29.         
  30.     }
  31.     
  32.     /**
  33.      * Sample command
  34.      *
  35.      * @param integer $uin 
  36.      * @param string $params 
  37.      */
  38.     public function Command_Example($uin$params)
  39.     {
  40.         $this->logs->write('This is example. Your uin: '.$uin.'; Params: '.$params);
  41.         $this->commands->sendMsg($uin'This is example. Your uin: '.$uin.'; Params: '.$params);
  42.     }
  43. }

Documentation generated on Mon, 24 Dec 2007 09:34:27 +0500 by phpDocumentor 1.4.0