diff options
author | tailor <cygnus@janrain.com> | 2007-01-12 00:32:20 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-01-12 00:32:20 +0000 |
commit | b05d16f479dbf75d958ffc3c057dfb09843531a8 (patch) | |
tree | 34f426dd529784c8a3160570e33ef7d1c6d20cab /Services/Yadis/XRDS.php | |
parent | f1d90afb457e2391a0437fc65967a0018b2f2a45 (diff) | |
download | php-openid-b05d16f479dbf75d958ffc3c057dfb09843531a8.zip php-openid-b05d16f479dbf75d958ffc3c057dfb09843531a8.tar.gz php-openid-b05d16f479dbf75d958ffc3c057dfb09843531a8.tar.bz2 |
[project @ More discovery refactoring and fixes]
Diffstat (limited to 'Services/Yadis/XRDS.php')
-rw-r--r-- | Services/Yadis/XRDS.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Services/Yadis/XRDS.php b/Services/Yadis/XRDS.php index 8b6c777..72a0d10 100644 --- a/Services/Yadis/XRDS.php +++ b/Services/Yadis/XRDS.php @@ -109,6 +109,19 @@ class Services_Yadis_Service { return $t; } + function matchTypes($type_uris) + { + $result = array(); + + foreach ($this->getTypes() as $typ) { + if (in_array($typ, $type_uris)) { + $result[] = $typ; + } + } + + return $result; + } + /** * Return the URIs in the "URI" elements, if any, of this Service * element. The URIs are returned sorted in priority order. |