From: Matthias Schmidt Date: Sun, 27 Mar 2016 08:34:16 +0000 (+0200) Subject: Deprecate setUserProfile() methods X-Git-Tag: 3.0.0_Beta_1~1286^2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d97c6f579a3cabe47fdf153e4317498cf115741b;p=GitHub%2FWoltLab%2FWCF.git Deprecate setUserProfile() methods --- diff --git a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php index a4fd6e32a0..50d689a98d 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php @@ -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; diff --git a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php index dec2dccfcb..8d58b0f46f 100644 --- a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php @@ -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; diff --git a/wcfsetup/install/files/lib/data/like/ViewableLike.class.php b/wcfsetup/install/files/lib/data/like/ViewableLike.class.php index c61d66295f..f32c70a1b9 100644 --- a/wcfsetup/install/files/lib/data/like/ViewableLike.class.php +++ b/wcfsetup/install/files/lib/data/like/ViewableLike.class.php @@ -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; diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index f126ea98fa..fb1e8c9d56 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -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())) { diff --git a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php index 4c1126b8ee..74ebe44ef5 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php @@ -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;