]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SearchSub/classes/SearchSub.php
Added missing SearchSub::getProfile() method.
[quix0rs-gnu-social.git] / plugins / SearchSub / classes / SearchSub.php
index f3a44854b2730ed81870152772c5f73bea8cac32..0d5828695b18217b6ddcdaaddc3af168972def70 100644 (file)
@@ -91,6 +91,18 @@ class SearchSub extends Managed_DataObject
         return $ts;
     }
 
+    /**
+     * Getter for Profile instance
+     *
+     * @return $profile        Profile instance
+     */
+    public function getProfile () {
+        assert($this->profile_id > 0);
+        $profile = new Profile();
+        $profile->id = $this->profile_id;
+        return $profile;
+    }
+
     /**
      * End a search subscription!
      *