]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User.php
Shortcut to Profile_prefs get/set Data in Profile and User
[quix0rs-gnu-social.git] / classes / User.php
index 1c54affda7461730b6553bfd41fd21cfffe9ab10..b55b57c181c6558d567fb8f07fe4e29217cc3182 100644 (file)
@@ -1007,4 +1007,14 @@ class User extends Managed_DataObject
                                 $service->title);
         return $act;
     }
+
+    public function getPref($namespace, $topic, $default=null)
+    {
+        return $this->getProfile()->getPref($namespace, $topic, $default);
+    }
+
+    public function setPref($namespace, $topic, $data)
+    {
+        return $this->getProfile()->setPref($namespace, $topic, $data);
+    }
 }