public function query($capability, $parameter = null)
    {
        $capability = Horde_String::upper($capability);

        if (!isset($this->_data[$capability])) {
            return false;
        }

        return is_null($parameter) ?:
               (is_array($this->_data[$capability]) &&
                in_array(Horde_String::upper($parameter), $this->_data[$capability]));
    }
public function query($capability, $parameter = null)
    {
        $capability = Horde_String::upper($capability);

        if (!isset($this->_data[$capability])) {
            return false;
        }

        return is_null($parameter) ?:
               (is_array($this->_data[$capability]) &&
                in_array(Horde_String::upper($parameter), $this->_data[$capability]));
    }
public function query ( $ capability , $ parameter = null ) { $ capability = Horde_String :: upper ( $ capability ) ; if ( ! isset ( $ this -> _data [ $ capability ] ) ) { return false ; } return is_null ( $ parameter ) ? : ( is_array ( $ this -> _data [ $ capability ] ) && in_array ( Horde_String :: upper ( $ parameter ) , $ this -> _data [ $ capability ] ) ) ; }
Returns whether the server supports the given capability.

@param string $capability  The capability string to query.
@param string $parameter   If set, require the parameter to exist.

@return boolean  True if the capability (and parameter) exist.
Returns whether the server supports the given capability .