]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
Merge request from chimo adding getvaliddaemons to stopdaemons.php
[quix0rs-gnu-social.git] / classes / Profile.php
index e5d00b392d88811c7c5932a59ff6b10403568ab3..e0eb06956feae9f3fcceea150e609d6040eac599 100644 (file)
@@ -1570,4 +1570,12 @@ class Profile extends Managed_DataObject
     {
         return $this->getUser()->shortenLinks($text, $always);
     }
+
+    public function getPref($namespace, $topic, $default=null) {
+        return Profile_prefs::getData($this, $namespace, $topic, $default);
+    }
+
+    public function setPref($namespace, $topic, $data) {
+        return Profile_prefs::setData($this, $namespace, $topic, $data);
+    }
 }