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

Source for file modules.class.php

Documentation is available at modules.class.php

  1. <?php
  2.  
  3. abstract class IcqBot_Module
  4. {
  5.     /**
  6.      * Class IcqBot_Commands for control Bot from modules
  7.      *
  8.      * @var IcqBot_Commands 
  9.      */
  10.     protected $commands;
  11.     
  12.     /**
  13.      * Class IcqBot_Logs for module's logs
  14.      *
  15.      * @var IcqBot_Logs 
  16.      */
  17.     protected $logs;
  18.     
  19.     public function __construct(IcqBot_Commands &$commandsIcqBot_Logs &$logs)
  20.     {
  21.         $this->commands = &$commands;
  22.         $this->logs        = &$logs
  23.     }
  24.     
  25.     public function __destruct()
  26.     {
  27.         $this->commands->removeAllCommands($this);
  28.     }
  29.  
  30.     abstract public function init();
  31.     abstract public function deinit();
  32. }
  33.  
  34. abstract class IcqBot_ModuleAdmin extends IcqBot_Module 
  35. {
  36.     
  37.     /**
  38.      * IcqBot class
  39.      *
  40.      * @var IcqBot 
  41.      */
  42.     protected  $icqbot;
  43.     
  44.     /**
  45.      * IcqBot_Conf
  46.      *
  47.      * @var IcqBot_Conf 
  48.      */
  49.     protected $conf;
  50.     protected $proto;
  51.     public function setIcqBot(IcqBot &$icqbotIcqBot_Conf &$conf&$proto)
  52.     {
  53.         $this->icqbot   = &$icqbot;
  54.         $this->conf     = &$conf;
  55.         $this->proto    = &$proto;
  56.     }
  57. }

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