Assembla home | Assembla project page
 

Changeset 88

Show
Ignore:
Timestamp:
02/29/08 02:41:05 (9 months ago)
Author:
tobias382
Message:

Renamed previously added getInstance method to getPlugin

Files:

Legend:

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

    r82 r88  
    9494         * @return Phergie_Plugin_Abstract_Base 
    9595         */ 
    96         public abstract function getInstance($plugin); 
     96        public abstract function getPlugin($plugin); 
    9797 
    9898    /** 
  • trunk/Phergie/Driver/Streams.php

    r82 r88  
    9797 
    9898        /** 
    99         * Returns a plugin instance 
    100        
    101         * @param $plugin The plugin class name (without the Phergie_Plugin_ prefix) 
    102         * @return Phergie_Plugin_Abstract_Base 
    103         */ 
    104         public function getInstance($plugin) 
     99        * Returns a plugin instance. 
     100   
     101        * @param $plugin The plugin class name (without the Phergie_Plugin_ prefix) 
     102        * @return Phergie_Plugin_Abstract_Base 
     103        */ 
     104        public function getPlugin($plugin) 
    105105        { 
    106106                if (isset($this->plugins[strtolower($plugin)])) 
  • trunk/Phergie/Plugin/Nickserv.php

    r82 r88  
    9595    public function onDoGhostbust() 
    9696    { 
    97         if ($this->getInstance('Users') === null) { 
     97        if ($this->getPlugin('Users') === null) { 
    9898            $password = $this->getPluginIni('password'); 
    9999            $this->debug('password = ' . $password);