public function supportsFeature($feature)
    {
        switch ($feature) {
            case self::FEATURE_NX:
                return ($this->getDriver() instanceof common_persistence_KeyValue_Nx);
            default:
                throw new common_exception_Error('Unknown feature '.$feature);
        }
        return false;
    }
public function supportsFeature($feature)
    {
        switch ($feature) {
            case self::FEATURE_NX:
                return ($this->getDriver() instanceof common_persistence_KeyValue_Nx);
            default:
                throw new common_exception_Error('Unknown feature '.$feature);
        }
        return false;
    }
public function supportsFeature ( $ feature ) { switch ( $ feature ) { case self :: FEATURE_NX : return ( $ this -> getDriver ( ) instanceof common_persistence_KeyValue_Nx ) ; default : throw new common_exception_Error ( 'Unknown feature ' . $ feature ) ; } return false ; }
Test wheever or not a feature is supported
@param string $feature
@throws common_exception_Error if feature is unkown
@return boolean
Test wheever or not a feature is supported