Phergie_Plugin_Abstract::setConfig PHP Method

setConfig() public method

Sets the current configuration handler.
public setConfig ( Phergie_Config $config ) : Phergie_Plugin_Abstract
$config Phergie_Config Configuration handler
return Phergie_Plugin_Abstract Provides a fluent interface
    public function setConfig(Phergie_Config $config)
    {
        $this->config = $config;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Initializes instance properties.
  *
  * @return void
  */
 public function setUp()
 {
     if (empty($this->pluginClass)) {
         $this->pluginClass = preg_replace('/Test$/', '', get_class($this));
     }
     if (empty($this->plugin)) {
         $this->plugin = new $this->pluginClass();
     }
     $this->plugin->setConfig($this->getMockConfig());
     $this->plugin->setConnection($this->getMockConnection());
     $this->plugin->setEventHandler($this->getMockEventHandler());
     $this->plugin->setPluginHandler($this->getMockPluginHandler());
 }
All Usage Examples Of Phergie_Plugin_Abstract::setConfig