summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 13a2f7adf..91c1906e3 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -59,4 +59,18 @@ function omb_hmac_sha1() {
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
}
return $hmac_method;
-} \ No newline at end of file
+}
+
+function omb_service_uri($service) {
+ $uris = $service->getURIs();
+ if (!$uris) {
+ return NULL;
+ }
+ return $uris[0];
+}
+
+function omb_local_id($service) {
+ $els = $service->getElements('LocalID');
+ return ($els) ? $els[0] : NULL;
+}
+