public function get_stores($mode, $requirements = 0) {
        $stores = array();
        foreach ($this->configstores as $name => $store) {
            // If the mode is supported and all of the requirements are provided features.
            if (($store['modes'] & $mode) && ($store['features'] & $requirements) === $requirements) {
                $stores[$name] = $store;
            }
        }
        return $stores;
    }
public function get_stores($mode, $requirements = 0) {
        $stores = array();
        foreach ($this->configstores as $name => $store) {
            // If the mode is supported and all of the requirements are provided features.
            if (($store['modes'] & $mode) && ($store['features'] & $requirements) === $requirements) {
                $stores[$name] = $store;
            }
        }
        return $stores;
    }
public function get_stores ( $ mode , $ requirements = 0 ) { $ stores = array ( ) ; foreach ( $ this -> configstores as $ name => $ store ) { // If the mode is supported and all of the requirements are provided features. if ( ( $ store [ 'modes' ] & $ mode ) && ( $ store [ 'features' ] & $ requirements ) === $ requirements ) { $ stores [ $ name ] = $ store ; } } return $ stores ; }
Returns all of the stores that are suitable for the given mode and requirements.

@param int $mode One of cache_store::MODE_*
@param int $requirements The requirements of the cache as a binary flag
@return array An array of suitable stores.
Returns all of the stores that are suitable for the given mode and requirements .