src/POData/Providers/ProvidersWrapper.php
/**
     * This function perform the following operations
     *  (1) If the cache contain an entry [key, value] for the resourceset then 
     *      return the entry-value
     *  (2) If the cache not contain an entry for the resourceset then validate 
     *      the resourceset
     *            (a) If valid add entry as [resouceset_name, resourceSetWrapper]
     *            (b) if not valid add entry as [resouceset_name, null]
     *  Note: validating a resourceset means checking the resourceset is visible 
     *  or not using configuration
     *  
     * @param ResourceSet $resourceSet The resourceset to validate and get the 
     *                                 wrapper for
     * 
     * @return ResourceSetWrapper|null Returns an instance if a resource set with the given name is visible
     */
This function perform the following operations
(1) If the cache contain an entry [key, value] for the resourceset then
return the entry-value
(2) If the cache not contain an entry for the resourceset then validate
the resourceset
(a) If valid add entry as [resouceset_name, resourceSetWrapper]
(b) if not valid add entry as [resouceset_name, null]
Note: validating a resourceset means checking the resourceset is visible
or not using configuration

@param ResourceSet $resourceSet The resourceset to validate and get the
wrapper for

@return ResourceSetWrapper|null Returns an instance if a resource set with the given name is visible
This function perform the following operations ( 1 ) If the cache contain an entry [ key value ] for the resourceset then return the entry - value ( 2 ) If the cache not contain an entry for the resourceset then validate the resourceset ( a ) If valid add entry as [ resouceset_name resourceSetWrapper ] ( b ) if not valid add entry as [ resouceset_name null ] Note : validating a resourceset means checking the resourceset is visible or not using configuration @param ResourceSet $resourceSet The resourceset to validate and get the wrapper for @return ResourceSetWrapper|null Returns an instance if a resource set with the given name is visible
private function _validateResourceSetAndGetWrapper(ResourceSet $resourceSet)
    {
        $cacheKey = $resourceSet->getName();
        if (array_key_exists($cacheKey, $this->setWrapperCache)) {
            return $this->setWrapperCache[$cacheKey];
        }
        $this->_validateResourceType($resourceSet->getResourceType());
        $wrapper = new ResourceSetWrapper($resourceSet, $this->config);
        if ($wrapper->isVisible()) {
            $this->setWrapperCache[$cacheKey] = $wrapper;
        } else {
            $this->setWrapperCache[$cacheKey] = null;
        }
        return $this->setWrapperCache[$cacheKey];
    }
private function _validateResourceSetAndGetWrapper ( ResourceSet $ resourceSet ) { $ cacheKey = $ resourceSet -> getName ( ) ; if ( array_key_exists ( $ cacheKey , $ this -> setWrapperCache ) ) { return $ this -> setWrapperCache [ $ cacheKey ] ; } $ this -> _validateResourceType ( $ resourceSet -> getResourceType ( ) ) ; $ wrapper = new ResourceSetWrapper ( $ resourceSet , $ this -> config ) ; if ( $ wrapper -> isVisible ( ) ) { $ this -> setWrapperCache [ $ cacheKey ] = $ wrapper ; } else { $ this -> setWrapperCache [ $ cacheKey ] = null ; } return $ this -> setWrapperCache [ $ cacheKey ] ; }
This function perform the following operations
  (1) If the cache contain an entry [key, value] for the resourceset then
      return the entry-value
  (2) If the cache not contain an entry for the resourceset then validate
      the resourceset
            (a) If valid add entry as [resouceset_name, resourceSetWrapper]
            (b) if not valid add entry as [resouceset_name, null]
  Note: validating a resourceset means checking the resourceset is visible
  or not using configuration
This function perform the following operations ( 1 ) If the cache contain an entry [ key value ] for the resourceset then return the entry - value ( 2 ) If the cache not contain an entry for the resourceset then validate the resourceset ( a ) If valid add entry as [ resouceset_name resourceSetWrapper ] ( b ) if not valid add entry as [ resouceset_name null ] Note : validating a resourceset means checking the resourceset is visible or not using configuration