Deprecate setUserProfile() methods
authorMatthias Schmidt <gravatronics@live.com>
Sun, 27 Mar 2016 08:34:16 +0000 (10:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 27 Mar 2016 08:34:16 +0000 (10:34 +0200)
wcfsetup/install/files/lib/data/comment/StructuredComment.class.php
wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php
wcfsetup/install/files/lib/data/like/ViewableLike.class.php
wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php
wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php

index a4fd6e32a04c8b67579efaf38f19aa35af66a7db..50d689a98dba1fbff5d405688718cd5bf5e8c173 100644 (file)
@@ -91,6 +91,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \
         * Sets the user's profile.
         * 
         * @param       UserProfile     $userProfile
+        * @deprecated  since 2.2
         */
        public function setUserProfile(UserProfile $userProfile) {
                $this->userProfile = $userProfile;
index dec2dccfcbb851169d728c554acaf0d08aad83a0..8d58b0f46fd4dbde171f38573080d279fbe8456a 100644 (file)
@@ -42,6 +42,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator {
         * Sets the user's profile.
         * 
         * @param       UserProfile     $userProfile
+        * @deprecated  since 2.2
         */
        public function setUserProfile(UserProfile $userProfile) {
                $this->userProfile = $userProfile;
index c61d66295f7382958e1bf2f99b303dc6f2772215..f32c70a1b9341563a4610273df310a492c3fbae8 100644 (file)
@@ -65,6 +65,7 @@ class ViewableLike extends DatabaseObjectDecorator {
         * Sets user profile.
         * 
         * @param       UserProfile     $userProfile
+        * @deprecated  since 2.2
         */
        public function setUserProfile(UserProfile $userProfile) {
                $this->userProfile = $userProfile;
index f126ea98faaa94420cdf918aeca3f4bf199140c8..fb1e8c9d56942119791c805eaf75680434bf3373 100644 (file)
@@ -82,6 +82,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator implements ILinkab
         * Sets associated user profile object.
         * 
         * @param       UserProfile     $userProfile
+        * @deprecated  since 2.2
         */
        public function setUserProfile(UserProfile $userProfile) {
                if ($this->affectedObject !== null && ($userProfile->userID == $this->affectedObject->getUserID())) {
index 4c1126b8ee76da23ef8f5b2e8ed7accdcfb9e260..74ebe44ef5e6b0303f0e41d18e98a74516c981a7 100644 (file)
@@ -87,6 +87,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator {
         * Sets user profile.
         * 
         * @param       UserProfile     $userProfile
+        * @deprecated  since 2.2
         */
        public function setUserProfile(UserProfile $userProfile) {
                $this->userProfile = $userProfile;