diff options
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. |