From 74bb71520418f67a610a64cfb9285af1ffcb1d4a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 18 Jan 2015 08:20:32 +0100 Subject: [PATCH] Added missing method TagSub::getProfile() Signed-off-by: Roland Haeder --- plugins/TagSub/classes/TagSub.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/TagSub/classes/TagSub.php b/plugins/TagSub/classes/TagSub.php index 5bc0c436ee..43c573e7cb 100644 --- a/plugins/TagSub/classes/TagSub.php +++ b/plugins/TagSub/classes/TagSub.php @@ -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; + } } -- 2.39.5