]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added missing method TagSub::getProfile()
authorRoland Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 07:20:32 +0000 (08:20 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:20:33 +0000 (00:20 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/TagSub/classes/TagSub.php

index 18023ac6541537f91bb47a19fea024e62e3c8c33..892f1942e84bc63c55b9474c20a10cd8daf98b1b 100644 (file)
@@ -132,4 +132,16 @@ class TagSub extends Managed_DataObject
 
         return $tags;
     }
+
+    /**
+     * 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;
+    }
 }