public function getResourcesBySourceName($sourceName)
    {
        // Getting source object first
        $source = $this->getSourceByName($sourceName);

        // Getting the data
        if ($source instanceof SourceInterface) {
            // Getting result iterator
            try {
                return $source->getContentIterator();
            } catch (\Exception $e) {
                throw new Exception\SourceGetDataException(
                    sprintf(
                        'Exception caught while getting the content for the following source object: %s',
                        $source->toString()
                    )
                );
            }
        }
        return null;
    }
public function getResourcesBySourceName($sourceName)
    {
        // Getting source object first
        $source = $this->getSourceByName($sourceName);

        // Getting the data
        if ($source instanceof SourceInterface) {
            // Getting result iterator
            try {
                return $source->getContentIterator();
            } catch (\Exception $e) {
                throw new Exception\SourceGetDataException(
                    sprintf(
                        'Exception caught while getting the content for the following source object: %s',
                        $source->toString()
                    )
                );
            }
        }
        return null;
    }
public function getResourcesBySourceName ( $ sourceName ) { // Getting source object first $ source = $ this -> getSourceByName ( $ sourceName ) ; // Getting the data if ( $ source instanceof SourceInterface ) { // Getting result iterator try { return $ source -> getContentIterator ( ) ; } catch ( \ Exception $ e ) { throw new Exception \ SourceGetDataException ( sprintf ( 'Exception caught while getting the content for the following source object: %s' , $ source -> toString ( ) ) ) ; } } return null ; }
Returns an Iterator containing all the resources for the given source name

@param string $sourceName the source name

@throws \Msl\ResourceProxy\Exception\SourceGetDataException

@return null|Iterator
Returns an Iterator containing all the resources for the given source name