Auth_OpenID_AX_KeyValueMessage::count PHP Method

count() public method

Get the number of responses for a particular attribute in this fetch_response message.
public count ( $type_uri )
    function count($type_uri)
    {
        if (array_key_exists($type_uri, $this->data)) {
            return count($this->get($type_uri));
        } else {
            return new Auth_OpenID_AX_Error(sprintf("Type URI %s not found in response", $type_uri));
        }
    }