public function addDataSource($interfaceName, $driver, $className)
    {
        if (!isset($this->dataSources[$interfaceName]) || !is_array($this->dataSources[$interfaceName])) {
            $this->dataSources[$interfaceName] = array();
        }
        
        $this->dataSources[$interfaceName][$driver] = $className;
        $this->saveDataSources();
        
        return true;
    }
public function addDataSource($interfaceName, $driver, $className)
    {
        if (!isset($this->dataSources[$interfaceName]) || !is_array($this->dataSources[$interfaceName])) {
            $this->dataSources[$interfaceName] = array();
        }
        
        $this->dataSources[$interfaceName][$driver] = $className;
        $this->saveDataSources();
        
        return true;
    }
public function addDataSource ( $ interfaceName , $ driver , $ className ) { if ( ! isset ( $ this -> dataSources [ $ interfaceName ] ) || ! is_array ( $ this -> dataSources [ $ interfaceName ] ) ) { $ this -> dataSources [ $ interfaceName ] = array ( ) ; } $ this -> dataSources [ $ interfaceName ] [ $ driver ] = $ className ; $ this -> saveDataSources ( ) ; return true ; }
Adds a data source to the repository

@access public
@param string $interfaceName
@param string $driver
@param string $className
Adds a data source to the repository