Assembla home | Assembla project page
 

Changeset 232

Show
Ignore:
Timestamp:
04/14/08 00:10:01 (7 months ago)
Author:
Slynderdale
Message:

Changed all instances of the method init and shutdown to onInit and onShutdown

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Driver/Streams.php

    r230 r232  
    186186                        $this->debug('Timed out'); 
    187187                        foreach($this->plugins as $plugin) { 
    188                             $plugin->shutdown(); 
     188                            $plugin->onShutdown(); 
    189189                        } 
    190190                        break 2; 
     
    344344                } 
    345345                foreach($this->plugins as $plugin) { 
    346                     $plugin->shutdown(); 
     346                    $plugin->onShutdown(); 
    347347                } 
    348348                if (isset($this->queue['quit'][0][1])) { 
  • trunk/Phergie/Plugin/Abstract/Base.php

    r226 r232  
    109109            $this->dir = $dir; 
    110110        } 
    111         $this->init(); 
     111        $this->onInit(); 
    112112    } 
    113113 
     
    560560     * @return void 
    561561     */ 
    562     public function init() { } 
     562    public function onInit() { } 
    563563 
    564564    /** 
     
    568568     * @return void 
    569569     */ 
    570     public function shutdown() { } 
     570    public function onShutdown() { } 
    571571 
    572572    /** 
  • trunk/Phergie/Plugin/Acronym.php

    r223 r232  
    5656     * @return void 
    5757     */ 
    58     public function init() 
     58    public function onInit() 
    5959    { 
    6060        $limit = $this->getPluginIni('limit'); 
  • trunk/Phergie/Plugin/Altnick.php

    r217 r232  
    2626     * @return void 
    2727     */ 
    28     public function init() 
     28    public function onInit() 
    2929    { 
    3030        $this->index = -1; 
  • trunk/Phergie/Plugin/Autojoin.php

    r224 r232  
    3636     * @return void 
    3737     */ 
    38     public function init() 
     38    public function onInit() 
    3939    { 
    4040        $joinInvite = $this->getPluginIni('invite'); 
  • trunk/Phergie/Plugin/ChuckNorris.php

    r223 r232  
    8181     * @return void 
    8282     */ 
    83     public function init() 
     83    public function onInit() 
    8484    { 
    8585        try { 
  • trunk/Phergie/Plugin/Drink.php

    r218 r232  
    8282     * @return void 
    8383     */ 
    84     public function init() 
     84    public function onInit() 
    8585    { 
    8686        try { 
  • trunk/Phergie/Plugin/FeedTicker.php

    r218 r232  
    9898     * @return void 
    9999     */ 
    100     public function init() 
     100    public function onInit() 
    101101    { 
    102102        // Delay between feed syndications 
  • trunk/Phergie/Plugin/Karma.php

    r223 r232  
    7777     * @return void 
    7878     */ 
    79     public function init() 
     79    public function onInit() 
    8080    { 
    8181        $this->db = null; 
  • trunk/Phergie/Plugin/Lart.php

    r223 r232  
    7171     * @return void 
    7272     */ 
    73     public function init() 
     73    public function onInit() 
    7474    { 
    7575        try { 
  • trunk/Phergie/Plugin/Logging.php

    r223 r232  
    118118     * @return void 
    119119     */ 
    120     public function init() 
     120    public function onInit() 
    121121    { 
    122122        try { 
  • trunk/Phergie/Plugin/Math.php

    r217 r232  
    1111     * Backwards compatibility for constants not defined in PHP 5.1.x 
    1212     */ 
    13     public function init() 
     13    public function onInit() 
    1414    { 
    1515        if (version_compare('5.2', PHP_VERSION, '>')) { 
  • trunk/Phergie/Plugin/Nickserv.php

    r223 r232  
    4343     * @return void 
    4444     */ 
    45     public function init() 
     45    public function onInit() 
    4646    { 
    4747        parent::init(); 
  • trunk/Phergie/Plugin/Php.php

    r217 r232  
    2424     * @return void 
    2525     */ 
    26     public function init() 
     26    public function onInit() 
    2727    { 
    2828        $this->cache = array(); 
  • trunk/Phergie/Plugin/Quit.php

    r226 r232  
    4040     * @return void 
    4141     */ 
    42     public function init() 
     42    public function onInit() 
    4343    { 
    4444        $phpPath = trim($this->getPluginIni('php_path')); 
  • trunk/Phergie/Plugin/Spellcheck.php

    r217 r232  
    2828     * @return void 
    2929     */ 
    30     public function init() 
     30    public function onInit() 
    3131    { 
    3232        $this->pspell = pspell_new($this->getPluginIni('lang')); 
  • trunk/Phergie/Plugin/Tld.php

    r228 r232  
    4848     * @return void 
    4949     */ 
    50     public function init() 
     50    public function onInit() 
    5151    { 
    5252        self::$fixedTlds = array( 
  • trunk/Phergie/Plugin/Toggle.php

    r223 r232  
    4343     * @return void 
    4444     */ 
    45     public function init() 
     45    public function onInit() 
    4646    { 
    4747        // Check to see if PDO and Sqlite is available 
  • trunk/Phergie/Plugin/Weather.php

    r217 r232  
    3131     * @return void 
    3232     */ 
    33     public function init() 
     33    public function onInit() 
    3434    { 
    3535        $this->partnerId = $this->getPluginIni('partner_id');