]> 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 Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 07:20:32 +0000 (08:20 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/TagSub/classes/TagSub.php

index 5bc0c436ee8f7d3639d273896c98ae4436b81545..43c573e7cbb58258dd97253ed8b2da1db3b70841 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;
+    }
 }