public function findAllByName($name)
    {
        $datasourceNodes = array();
        foreach ($this->findAll() as $datasourceNode) {
            if ($datasourceNode->getName() === $name) {
                $datasourceNodes[$datasourceNode->getPrimaryKey()] = $datasourceNode;
            }
        }

        return $datasourceNodes;
    }
public function findAllByName($name)
    {
        $datasourceNodes = array();
        foreach ($this->findAll() as $datasourceNode) {
            if ($datasourceNode->getName() === $name) {
                $datasourceNodes[$datasourceNode->getPrimaryKey()] = $datasourceNode;
            }
        }

        return $datasourceNodes;
    }
public function findAllByName ( $ name ) { $ datasourceNodes = array ( ) ; foreach ( $ this -> findAll ( ) as $ datasourceNode ) { if ( $ datasourceNode -> getName ( ) === $ name ) { $ datasourceNodes [ $ datasourceNode -> getPrimaryKey ( ) ] = $ datasourceNode ; } } return $ datasourceNodes ; }
Returns an array with the datasources with the passed name.

@param string $name Name of the datasource to return

@return array The datasources with the name passed as parameter
Returns an array with the datasources with the passed name .