From d2268de823f1febb1e309d95db21fcfe6b322195 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 28 Feb 2026 21:14:51 +0100 Subject: [PATCH 1/5] Ensure that Boolean columns use the correct type when created --- wcfsetup/setup/db/install_com.woltlab.wcf.php | 236 +++++------------- 1 file changed, 59 insertions(+), 177 deletions(-) diff --git a/wcfsetup/setup/db/install_com.woltlab.wcf.php b/wcfsetup/setup/db/install_com.woltlab.wcf.php index 1fab3ee7f87..003d4024f76 100644 --- a/wcfsetup/setup/db/install_com.woltlab.wcf.php +++ b/wcfsetup/setup/db/install_com.woltlab.wcf.php @@ -195,9 +195,7 @@ ->columns([ NotNullVarchar191DatabaseTableColumn::create('boxName'), NotNullInt10DatabaseTableColumn::create('userID'), - TinyintDatabaseTableColumn::create('enabled') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('enabled'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), ]) @@ -429,9 +427,7 @@ ->defaultValue(1), NotNullInt10DatabaseTableColumn::create('publicationDate') ->defaultValue(0), - TinyintDatabaseTableColumn::create('enableComments') - ->notNull() - ->defaultValue(1), + DefaultTrueBooleanDatabaseTableColumn::create('enableComments'), MediumintDatabaseTableColumn::create('views') ->notNull() ->defaultValue(0), @@ -660,9 +656,7 @@ ->defaultValue(''), DefaultFalseBooleanDatabaseTableColumn::create('isBlockElement'), DefaultFalseBooleanDatabaseTableColumn::create('isSourceCode'), - TinyintDatabaseTableColumn::create('showButton') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('showButton'), DefaultFalseBooleanDatabaseTableColumn::create('originIsSystem'), ]) ->indices([ @@ -691,12 +685,8 @@ ->defaultValue(''), NotNullVarchar255DatabaseTableColumn::create('validationPattern') ->defaultValue(''), - TinyintDatabaseTableColumn::create('required') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('useText') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('required'), + DefaultFalseBooleanDatabaseTableColumn::create('useText'), ]) ->indices([ DatabaseTablePrimaryIndex::create() @@ -773,18 +763,10 @@ ->columns([ DateDatabaseTableColumn::create('date') ->notNull(), - TinyintDatabaseTableColumn::create('delta1') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('delta2') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('delta3') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('delta4') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('delta1'), + DefaultFalseBooleanDatabaseTableColumn::create('delta2'), + DefaultFalseBooleanDatabaseTableColumn::create('delta3'), + DefaultFalseBooleanDatabaseTableColumn::create('delta4'), ]) ->indices([ DatabaseTableIndex::create('day') @@ -801,17 +783,13 @@ NotNullVarchar255DatabaseTableColumn::create('position'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), - TinyintDatabaseTableColumn::create('visibleEverywhere') - ->notNull() - ->defaultValue(1), + DefaultTrueBooleanDatabaseTableColumn::create('visibleEverywhere'), DefaultFalseBooleanDatabaseTableColumn::create('isMultilingual'), NotNullInt10DatabaseTableColumn::create('lastUpdateTime') ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('cssClassName') ->defaultValue(''), - TinyintDatabaseTableColumn::create('showHeader') - ->notNull() - ->defaultValue(1), + DefaultTrueBooleanDatabaseTableColumn::create('showHeader'), DefaultFalseBooleanDatabaseTableColumn::create('originIsSystem'), NotNullInt10DatabaseTableColumn::create('packageID'), IntDatabaseTableColumn::create('menuID'), @@ -821,9 +799,7 @@ NotNullVarchar255DatabaseTableColumn::create('externalURL') ->defaultValue(''), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), - TinyintDatabaseTableColumn::create('invertPermissions') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('invertPermissions'), TextDatabaseTableColumn::create('additionalData'), ]) ->indices([ @@ -947,9 +923,7 @@ ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('title'), TextDatabaseTableColumn::create('description'), - TinyintDatabaseTableColumn::create('descriptionUseHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('descriptionUseHtml'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), NotNullInt10DatabaseTableColumn::create('time') @@ -1068,9 +1042,7 @@ ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('unfilteredResponseIDs') ->defaultValue(''), - TinyintDatabaseTableColumn::create('enableHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('enableHtml'), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), DefaultFalseBooleanDatabaseTableColumn::create('hasEmbeddedObjects'), ]) @@ -1106,9 +1078,7 @@ NotNullVarchar255DatabaseTableColumn::create('username'), MediumtextDatabaseTableColumn::create('message') ->notNull(), - TinyintDatabaseTableColumn::create('enableHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('enableHtml'), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), DefaultFalseBooleanDatabaseTableColumn::create('hasEmbeddedObjects'), ]) @@ -1249,12 +1219,8 @@ NotNullInt10DatabaseTableColumn::create('afterNextExec') ->defaultValue(0), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), - TinyintDatabaseTableColumn::create('canBeEdited') - ->notNull() - ->defaultValue(1), - TinyintDatabaseTableColumn::create('canBeDisabled') - ->notNull() - ->defaultValue(1), + DefaultTrueBooleanDatabaseTableColumn::create('canBeEdited'), + DefaultTrueBooleanDatabaseTableColumn::create('canBeDisabled'), TinyintDatabaseTableColumn::create('state') ->notNull() ->defaultValue(0), @@ -1284,9 +1250,7 @@ NotNullInt10DatabaseTableColumn::create('cronjobID'), NotNullInt10DatabaseTableColumn::create('execTime') ->defaultValue(0), - TinyintDatabaseTableColumn::create('success') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('success'), TextDatabaseTableColumn::create('error'), ]) ->indices([ @@ -1427,9 +1391,7 @@ ->notNull() ->length(200) ->defaultValue(''), - TinyintDatabaseTableColumn::create('inherit') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('inherit'), TinyintDatabaseTableColumn::create('niceValue') ->notNull() ->defaultValue(0), @@ -1623,12 +1585,8 @@ ->length(80), NotNullVarchar255DatabaseTableColumn::create('groupDescription') ->defaultValue(''), - TinyintDatabaseTableColumn::create('forceSelection') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('sortAlphabetically') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('forceSelection'), + DefaultFalseBooleanDatabaseTableColumn::create('sortAlphabetically'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), ]) @@ -1732,9 +1690,7 @@ MediumtextDatabaseTableColumn::create('languageItemValue') ->notNull(), MediumtextDatabaseTableColumn::create('languageCustomItemValue'), - TinyintDatabaseTableColumn::create('languageUseCustomValue') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('languageUseCustomValue'), DefaultTrueBooleanDatabaseTableColumn::create('languageItemOriginIsSystem'), NotNullInt10DatabaseTableColumn::create('languageCategoryID'), NotNullInt10DatabaseTableColumn::create('packageID'), @@ -1879,9 +1835,7 @@ NotNullVarchar255DatabaseTableColumn::create('username'), IntDatabaseTableColumn::create('languageID'), DefaultFalseBooleanDatabaseTableColumn::create('isMultilingual'), - TinyintDatabaseTableColumn::create('captionEnableHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('captionEnableHtml'), DefaultFalseBooleanDatabaseTableColumn::create('isImage'), SmallintDatabaseTableColumn::create('width') ->notNull() @@ -2172,9 +2126,7 @@ VarcharDatabaseTableColumn::create('action') ->notNull() ->length(80), - TinyintDatabaseTableColumn::create('hidden') - ->notNull() - ->defaultValue(1), + DefaultTrueBooleanDatabaseTableColumn::create('hidden'), MediumtextDatabaseTableColumn::create('additionalData'), ]) ->indices([ @@ -2202,9 +2154,7 @@ ObjectIdDatabaseTableColumn::create('noticeID'), NotNullVarchar255DatabaseTableColumn::create('noticeName'), MediumtextDatabaseTableColumn::create('notice'), - TinyintDatabaseTableColumn::create('noticeUseHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('noticeUseHtml'), NotNullVarchar255DatabaseTableColumn::create('cssClassName') ->defaultValue('info'), NotNullInt10DatabaseTableColumn::create('showOrder') @@ -2313,17 +2263,11 @@ MediumtextDatabaseTableColumn::create('enableOptions'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), - TinyintDatabaseTableColumn::create('hidden') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('hidden'), TextDatabaseTableColumn::create('permissions'), TextDatabaseTableColumn::create('options'), - TinyintDatabaseTableColumn::create('supportI18n') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('requireI18n') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('supportI18n'), + DefaultFalseBooleanDatabaseTableColumn::create('requireI18n'), MediumtextDatabaseTableColumn::create('additionalData'), ]) ->indices([ @@ -2512,9 +2456,7 @@ NotNullVarchar255DatabaseTableColumn::create('nodeType'), TextDatabaseTableColumn::create('nodeData') ->notNull(), - TinyintDatabaseTableColumn::create('done') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('done'), ]) ->foreignKeys([ DatabaseTableForeignKey::create() @@ -2568,9 +2510,7 @@ 'uninstall', ]) ->defaultValue('install'), - TinyintDatabaseTableColumn::create('done') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('done'), DefaultFalseBooleanDatabaseTableColumn::create('isApplication'), ]) ->indices([ @@ -2830,31 +2770,19 @@ ->defaultValue(''), NotNullVarchar255DatabaseTableColumn::create('controllerCustomURL') ->defaultValue(''), - TinyintDatabaseTableColumn::create('requireObjectID') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('requireObjectID'), DefaultFalseBooleanDatabaseTableColumn::create('hasFixedParent'), NotNullInt10DatabaseTableColumn::create('lastUpdateTime') ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('cssClassName') ->defaultValue(''), - TinyintDatabaseTableColumn::create('availableDuringOfflineMode') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('allowSpidersToIndex') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('excludeFromLandingPage') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('enableShareButtons') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('availableDuringOfflineMode'), + DefaultFalseBooleanDatabaseTableColumn::create('allowSpidersToIndex'), + DefaultFalseBooleanDatabaseTableColumn::create('excludeFromLandingPage'), + DefaultFalseBooleanDatabaseTableColumn::create('enableShareButtons'), TextDatabaseTableColumn::create('permissions'), TextDatabaseTableColumn::create('options'), - TinyintDatabaseTableColumn::create('invertPermissions') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('invertPermissions'), ]) ->indices([ DatabaseTablePrimaryIndex::create() @@ -3037,9 +2965,7 @@ NotNullInt10DatabaseTableColumn::create('endDate') ->defaultValue(0), DefaultTrueBooleanDatabaseTableColumn::create('isActive'), - TinyintDatabaseTableColumn::create('sentExpirationNotification') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('sentExpirationNotification'), ]) ->indices([ DatabaseTablePrimaryIndex::create() @@ -3079,12 +3005,8 @@ ->defaultValue(0), DefaultFalseBooleanDatabaseTableColumn::create('isChangeable'), DefaultFalseBooleanDatabaseTableColumn::create('isPublic'), - TinyintDatabaseTableColumn::create('sortByVotes') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('resultsRequireVote') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('sortByVotes'), + DefaultFalseBooleanDatabaseTableColumn::create('resultsRequireVote'), NotNullInt10DatabaseTableColumn::create('maxVotes') ->defaultValue(1), NotNullInt10DatabaseTableColumn::create('votes') @@ -3751,15 +3673,9 @@ VarcharDatabaseTableColumn::create('badgeColor') ->length(255), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), - TinyintDatabaseTableColumn::create('awardAutomatically') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('revokeAutomatically') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('trophyUseHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('awardAutomatically'), + DefaultFalseBooleanDatabaseTableColumn::create('revokeAutomatically'), + DefaultFalseBooleanDatabaseTableColumn::create('trophyUseHtml'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), ]) @@ -3858,9 +3774,7 @@ ->defaultValue(0), NotNullInt10DatabaseTableColumn::create('styleID') ->defaultValue(0), - TinyintDatabaseTableColumn::create('banned') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('banned'), MediumtextDatabaseTableColumn::create('banReason'), NotNullInt10DatabaseTableColumn::create('banExpires') ->defaultValue(0), @@ -3890,19 +3804,13 @@ IntDatabaseTableColumn::create('avatarFileID'), VarcharDatabaseTableColumn::create('avatarPathname') ->length(255), - TinyintDatabaseTableColumn::create('disableAvatar') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('disableAvatar'), TextDatabaseTableColumn::create('disableAvatarReason'), NotNullInt10DatabaseTableColumn::create('disableAvatarExpires') ->defaultValue(0), TextDatabaseTableColumn::create('signature'), - TinyintDatabaseTableColumn::create('signatureEnableHtml') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('disableSignature') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('signatureEnableHtml'), + DefaultFalseBooleanDatabaseTableColumn::create('disableSignature'), TextDatabaseTableColumn::create('disableSignatureReason'), NotNullInt10DatabaseTableColumn::create('disableSignatureExpires') ->defaultValue(0), @@ -3936,9 +3844,7 @@ ->defaultValue(''), /** @deprecated 6.2 */ DefaultFalseBooleanDatabaseTableColumn::create('coverPhotoHasWebP'), - TinyintDatabaseTableColumn::create('disableCoverPhoto') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('disableCoverPhoto'), TextDatabaseTableColumn::create('disableCoverPhotoReason'), NotNullInt10DatabaseTableColumn::create('disableCoverPhotoExpires') ->defaultValue(0), @@ -4215,15 +4121,9 @@ ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('userOnlineMarking') ->defaultValue('%s'), - TinyintDatabaseTableColumn::create('showOnTeamPage') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('allowMention') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('requireMultifactor') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('showOnTeamPage'), + DefaultFalseBooleanDatabaseTableColumn::create('allowMention'), + DefaultFalseBooleanDatabaseTableColumn::create('requireMultifactor'), ]) ->indices([ DatabaseTablePrimaryIndex::create() @@ -4265,9 +4165,7 @@ ->defaultValue(0), TextDatabaseTableColumn::create('permissions'), TextDatabaseTableColumn::create('options'), - TinyintDatabaseTableColumn::create('usersOnly') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('usersOnly'), MediumtextDatabaseTableColumn::create('additionalData'), ]) ->indices([ @@ -4520,9 +4418,7 @@ NotNullInt10DatabaseTableColumn::create('userID'), NotNullInt10DatabaseTableColumn::create('time') ->defaultValue(0), - TinyintDatabaseTableColumn::create('mailNotified') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('mailNotified'), NotNullInt10DatabaseTableColumn::create('confirmTime') ->defaultValue(0), TextDatabaseTableColumn::create('additionalData'), @@ -4594,9 +4490,7 @@ ->defaultValue(''), TextDatabaseTableColumn::create('permissions'), TextDatabaseTableColumn::create('options'), - TinyintDatabaseTableColumn::create('preset') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('preset'), EnumDatabaseTableColumn::create('presetMailNotificationType') ->notNull() ->enumValues([ @@ -4707,12 +4601,8 @@ MediumtextDatabaseTableColumn::create('selectOptions'), MediumtextDatabaseTableColumn::create('enableOptions'), MediumtextDatabaseTableColumn::create('labeledUrl'), - TinyintDatabaseTableColumn::create('required') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('askDuringRegistration') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('required'), + DefaultFalseBooleanDatabaseTableColumn::create('askDuringRegistration'), TinyintDatabaseTableColumn::create('editable') ->notNull() ->defaultValue(0), @@ -4721,9 +4611,7 @@ ->defaultValue(0), NotNullVarchar255DatabaseTableColumn::create('outputClass') ->defaultValue(''), - TinyintDatabaseTableColumn::create('searchable') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('searchable'), NotNullInt10DatabaseTableColumn::create('showOrder') ->defaultValue(0), DefaultFalseBooleanDatabaseTableColumn::create('isDisabled'), @@ -4868,9 +4756,7 @@ TinyintDatabaseTableColumn::create('requiredGender') ->notNull() ->defaultValue(0), - TinyintDatabaseTableColumn::create('hideTitle') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('hideTitle'), ]) ->indices([ DatabaseTablePrimaryIndex::create() @@ -5021,12 +4907,8 @@ NotNullInt10DatabaseTableColumn::create('time') ->defaultValue(0), MediumtextDatabaseTableColumn::create('description'), - TinyintDatabaseTableColumn::create('useCustomDescription') - ->notNull() - ->defaultValue(0), - TinyintDatabaseTableColumn::create('trophyUseHtml') - ->notNull() - ->defaultValue(0), + DefaultFalseBooleanDatabaseTableColumn::create('useCustomDescription'), + DefaultFalseBooleanDatabaseTableColumn::create('trophyUseHtml'), ]) ->indices([ DatabaseTablePrimaryIndex::create() From ba6b8124044747f95cec751f55b7808a7fea3016 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 28 Feb 2026 21:15:37 +0100 Subject: [PATCH 2/5] Update / unify property documentation of database objects --- .../lib/data/acl/option/ACLOption.class.php | 10 +- .../category/ACLOptionCategory.class.php | 8 +- .../data/acp/menu/item/ACPMenuItem.class.php | 20 ++-- .../provider/ACPSearchProvider.class.php | 10 +- .../access/log/ACPSessionAccessLog.class.php | 14 +-- .../acp/session/log/ACPSessionLog.class.php | 37 ++------ .../data/acp/template/ACPTemplate.class.php | 8 +- .../install/files/lib/data/ad/Ad.class.php | 12 +-- .../data/application/Application.class.php | 12 +-- .../files/lib/data/article/Article.class.php | 28 +++--- .../article/content/ArticleContent.class.php | 24 ++--- .../lib/data/attachment/Attachment.class.php | 54 +++++------ .../files/lib/data/bbcode/BBCode.class.php | 24 ++--- .../attribute/BBCodeAttribute.class.php | 14 +-- .../provider/BBCodeMediaProvider.class.php | 14 +-- .../blacklist/entry/BlacklistEntry.class.php | 8 +- .../status/BlacklistStatus.class.php | 10 +- .../install/files/lib/data/box/Box.class.php | 46 +++++----- .../lib/data/box/content/BoxContent.class.php | 14 +-- .../question/CaptchaQuestion.class.php | 11 ++- .../lib/data/category/Category.class.php | 18 ++-- .../action/ClipboardAction.class.php | 14 ++- .../files/lib/data/comment/Comment.class.php | 28 +++--- .../response/CommentResponse.class.php | 18 ++-- .../lib/data/condition/Condition.class.php | 6 +- .../contact/option/ContactOption.class.php | 17 ++-- .../recipient/ContactRecipient.class.php | 14 +-- .../lib/data/core/object/CoreObject.class.php | 10 +- .../files/lib/data/cronjob/Cronjob.class.php | 38 ++++---- .../lib/data/cronjob/log/CronjobLog.class.php | 10 +- .../DevtoolsMissingLanguageItem.class.php | 10 +- .../project/DevtoolsProject.class.php | 6 +- .../history/entry/EditHistoryEntry.class.php | 20 ++-- .../email/log/entry/EmailLogEntry.class.php | 16 ++-- .../event/listener/EventListener.class.php | 22 ++--- .../files/lib/data/file/File.class.php | 24 ++--- .../file/temporary/FileTemporary.class.php | 18 ++-- .../file/thumbnail/FileThumbnail.class.php | 16 ++-- .../files/lib/data/label/Label.class.php | 10 +- .../lib/data/label/group/LabelGroup.class.php | 12 +-- .../lib/data/language/Language.class.php | 16 ++-- .../category/LanguageCategory.class.php | 4 +- .../data/language/item/LanguageItem.class.php | 24 ++--- .../files/lib/data/like/Like.class.php | 16 ++-- .../lib/data/like/object/LikeObject.class.php | 16 ++-- .../files/lib/data/media/Media.class.php | 68 +++++++------- .../files/lib/data/menu/Menu.class.php | 10 +- .../lib/data/menu/item/MenuItem.class.php | 26 +++--- .../queue/ModerationQueue.class.php | 24 ++--- .../log/ModificationLog.class.php | 17 ++-- .../files/lib/data/notice/Notice.class.php | 16 ++-- .../definition/ObjectTypeDefinition.class.php | 14 ++- .../files/lib/data/option/Option.class.php | 28 +++--- .../option/category/OptionCategory.class.php | 14 +-- .../files/lib/data/package/Package.class.php | 26 +++--- .../PackageInstallationPlugin.class.php | 8 +- .../queue/PackageInstallationQueue.class.php | 22 ++--- .../package/update/PackageUpdate.class.php | 18 ++-- .../server/PackageUpdateServer.class.php | 19 ++-- .../version/PackageUpdateVersion.class.php | 16 ++-- .../files/lib/data/page/Page.class.php | 48 +++++----- .../data/page/content/PageContent.class.php | 16 ++-- .../subscription/PaidSubscription.class.php | 24 ++--- .../PaidSubscriptionTransactionLog.class.php | 18 ++-- .../user/PaidSubscriptionUser.class.php | 14 +-- .../files/lib/data/poll/Poll.class.php | 24 ++--- .../lib/data/poll/option/PollOption.class.php | 10 +- .../data/reaction/type/ReactionType.class.php | 10 +- .../files/lib/data/search/Search.class.php | 16 ++-- .../search/keyword/SearchKeyword.class.php | 12 +-- .../service/worker/ServiceWorker.class.php | 12 +-- .../files/lib/data/smiley/Smiley.class.php | 18 ++-- .../lib/data/stat/daily/StatDaily.class.php | 14 ++- .../files/lib/data/style/Style.class.php | 42 ++++----- .../style/variable/StyleVariable.class.php | 8 +- .../install/files/lib/data/tag/Tag.class.php | 8 +- .../lib/data/template/Template.class.php | 14 +-- .../template/group/TemplateGroup.class.php | 8 +- .../listener/TemplateListener.class.php | 24 +++-- .../files/lib/data/trophy/Trophy.class.php | 28 +++--- .../lib/data/unfurl/url/UnfurlUrl.class.php | 32 +++---- .../files/lib/data/user/User.class.php | 92 +++++++++---------- .../event/UserActivityEvent.class.php | 12 +-- .../UserAuthenticationFailure.class.php | 16 ++-- .../lib/data/user/avatar/UserAvatar.class.php | 16 ++-- .../lib/data/user/follow/UserFollow.class.php | 8 +- .../lib/data/user/group/UserGroup.class.php | 2 +- .../assignment/UserGroupAssignment.class.php | 8 +- .../group/option/UserGroupOption.class.php | 4 +- .../UserGroupOptionCategory.class.php | 14 +-- .../lib/data/user/ignore/UserIgnore.class.php | 10 +- .../user/menu/item/UserMenuItem.class.php | 22 ++--- .../notification/UserNotification.class.php | 26 +++--- .../event/UserNotificationEvent.class.php | 18 ++-- .../object/watch/UserObjectWatch.class.php | 10 +- .../lib/data/user/option/UserOption.class.php | 20 ++-- .../category/UserOptionCategory.class.php | 14 +-- .../menu/item/UserProfileMenuItem.class.php | 14 +-- .../visitor/UserProfileVisitor.class.php | 8 +- .../lib/data/user/rank/UserRank.class.php | 18 ++-- .../lib/data/user/trophy/UserTrophy.class.php | 14 +-- .../AbstractDatabaseTableColumn.class.php | 10 +- .../reactions/RenderUserReactions.class.php | 2 +- .../admin/ACPSessionLogGridView.class.php | 1 - .../ReactionTypeBulkInteractions.class.php | 2 +- 105 files changed, 921 insertions(+), 947 deletions(-) diff --git a/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php b/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php index 8ab4a6210ce..33170dda3c1 100644 --- a/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php @@ -11,11 +11,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $optionID unique id of the acl option - * @property-read int $packageID id of the package which delivers the acl option - * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type - * @property-read string $optionName name and textual identifier of the acl option - * @property-read string $categoryName name of the acl option category the option belongs to + * @property-read int $optionID unique id of the acl option + * @property-read int $packageID id of the package which delivers the acl option + * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type + * @property-read string $optionName name and textual identifier of the acl option + * @property-read string $categoryName name of the acl option category the option belongs to */ class ACLOption extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php index ab1a0afa3e0..f66af9da68d 100644 --- a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php @@ -11,9 +11,9 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $categoryID unique id of the acl option category - * @property-read int $packageID id of the package which delivers the acl option category - * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type - * @property-read string $categoryName name and textual identifier of the acl option category + * @property-read int $categoryID unique id of the acl option category + * @property-read int $packageID id of the package which delivers the acl option category + * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type + * @property-read string $categoryName name and textual identifier of the acl option category */ class ACLOptionCategory extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php index bc28fd1df04..d1190d12a76 100644 --- a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php @@ -16,16 +16,16 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $menuItemID unique id of the ACP menu item - * @property-read int $packageID id of the package which delivers the ACP menu item - * @property-read string $menuItem textual identifier of the ACP menu item - * @property-read string $parentMenuItem textual identifier of the ACP menu item's parent menu item or empty if it has no parent menu item - * @property-read string $menuItemController class name of the ACP menu item's controller used to generate menu item link - * @property-read string $menuItemLink additional part of the ACP menu item link if `$menuItemController` is set, external link or name of language item which contains the external link - * @property-read int $showOrder position of the ACP menu item in relation to its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the ACP menu item - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the ACP menu item to be shown - * @property-read string $icon FontAwesome CSS class name for ACP menu items on the first or third level + * @property-read int $menuItemID unique id of the ACP menu item + * @property-read int $packageID id of the package which delivers the ACP menu item + * @property-read string $menuItem textual identifier of the ACP menu item + * @property-read string $parentMenuItem textual identifier of the ACP menu item's parent menu item or empty if it has no parent menu item + * @property-read string $menuItemController class name of the ACP menu item's controller used to generate menu item link + * @property-read string $menuItemLink additional part of the ACP menu item link if `$menuItemController` is set, external link or name of language item which contains the external link + * @property-read int $showOrder position of the ACP menu item in relation to its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the ACP menu item + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the ACP menu item to be shown + * @property-read string $icon FontAwesome CSS class name for ACP menu items on the first or third level */ class ACPMenuItem extends DatabaseObject implements ITreeMenuItem { diff --git a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php index 5212475cb1d..e03f3d5dd25 100644 --- a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php +++ b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php @@ -11,11 +11,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $providerID unique id of the ACP search provider - * @property-read int $packageID id of the package which delivers the ACP search provider - * @property-read string $providerName textual identifier of the ACP search provider - * @property-read string $className class name of the `wcf\system\search\acp\IACPSearchResultProvider` implementation executing the search - * @property-read int $showOrder position of the grouped results of the ACP search provider within the result list + * @property-read int $providerID unique id of the ACP search provider + * @property-read int $packageID id of the package which delivers the ACP search provider + * @property-read string $providerName textual identifier of the ACP search provider + * @property-read string $className class name of the `wcf\system\search\acp\IACPSearchResultProvider` implementation executing the search + * @property-read int $showOrder position of the grouped results of the ACP search provider within the result list */ class ACPSearchProvider extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php index 0d53db7191c..b36688cc371 100644 --- a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php @@ -12,13 +12,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $sessionAccessLogID unique id of the acp session access log entry - * @property-read int $sessionLogID id of the acp session log entry the access log entry belongs to - * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry - * @property-read int $time timestamp at which the acp session access log entry has been created - * @property-read string $requestURI uri of the logged request - * @property-read string $requestMethod used request method (`GET`, `POST`) - * @property-read string $className name of the PHP controller class + * @property-read int $sessionAccessLogID unique id of the acp session access log entry + * @property-read int $sessionLogID id of the acp session log entry the access log entry belongs to + * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry + * @property-read int $time timestamp at which the acp session access log entry has been created + * @property-read string $requestURI uri of the logged request + * @property-read string $requestMethod used request method (`GET`, `POST`) + * @property-read string $className name of the PHP controller class */ class ACPSessionAccessLog extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php index 5dc9a79cf47..20f5fd3d76f 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php @@ -13,15 +13,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $sessionLogID unique id of the acp session log entry - * @property-read string $sessionID id of the acp session the acp session log entry belongs to - * @property-read int|null $userID id of the user who has caused the acp session log entry or `null` - * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry - * @property-read string $hostname name of the internet host corresponding to the user's IP address - * @property-read string $userAgent user agent of the user who has caused the acp session access log entry - * @property-read int $time timestamp at which the acp session log entry has been created - * @property-read int $lastActivityTime timestamp at which the associated session has been active for the last time - * @property-read string|null $active has the corresponding acp session id as the value if the session is still active, otherwise `null` + * @property-read int $sessionLogID unique id of the acp session log entry + * @property-read string $sessionID id of the acp session the acp session log entry belongs to + * @property-read ?int $userID id of the user who has caused the acp session log entry or `null` + * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry + * @property-read string $hostname name of the internet host corresponding to the user's IP address + * @property-read string $userAgent user agent of the user who has caused the acp session access log entry + * @property-read int $time timestamp at which the acp session log entry has been created + * @property-read int $lastActivityTime timestamp at which the associated session has been active for the last time */ class ACPSessionLog extends DatabaseObject { @@ -38,7 +37,7 @@ class ACPSessionLog extends DatabaseObject public function __construct($id, ?array $row = null, ?DatabaseObject $object = null) { if ($id !== null) { - $sql = "SELECT acp_session_log.*, user_table.username, 0 AS active + $sql = "SELECT acp_session_log.*, user_table.username FROM wcf1_acp_session_log acp_session_log LEFT JOIN wcf1_user user_table ON user_table.userID = acp_session_log.userID @@ -53,24 +52,6 @@ public function __construct($id, ?array $row = null, ?DatabaseObject $object = n $this->handleData($row); } - /** - * @return false - * @deprecated 5.4 - This method always returns false. - */ - public function isActive() - { - return false; - } - - /** - * @return false - * @deprecated 5.4 - This method always returns false. - */ - public function isActiveUserSession() - { - return false; - } - /** * Returns the ip address and attempts to convert into IPv4. * diff --git a/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php b/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php index 2b49c698b7a..c77a722dd5c 100644 --- a/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php +++ b/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php @@ -12,10 +12,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $templateID unique id of the acp template - * @property-read int|null $packageID id of the package which delivers the acp template - * @property-read string $templateName name of the template - * @property-read string $application abbreviation of the application to which the template belongs + * @property-read int $templateID unique id of the acp template + * @property-read int $packageID id of the package which delivers the acp template + * @property-read string $templateName name of the template + * @property-read string $application abbreviation of the application to which the template belongs */ class ACPTemplate extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/ad/Ad.class.php b/wcfsetup/install/files/lib/data/ad/Ad.class.php index 646f21ea5ce..7cf08340bee 100644 --- a/wcfsetup/install/files/lib/data/ad/Ad.class.php +++ b/wcfsetup/install/files/lib/data/ad/Ad.class.php @@ -18,12 +18,12 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $adID unique id of the ad - * @property-read int $objectTypeID id of the `com.woltlab.wcf.adLocation` object type - * @property-read string $adName name of the ad shown in ACP - * @property-read string $ad ad text - * @property-read int $isDisabled is `1` if the ad is disabled and thus not shown, otherwise `0` - * @property-read int $showOrder position of the ad in relation to the other ads at the same location + * @property-read int $adID unique id of the ad + * @property-read int $objectTypeID id of the `com.woltlab.wcf.adLocation` object type + * @property-read string $adName name of the ad shown in ACP + * @property-read ?string $ad ad text + * @property-read 0|1 $isDisabled is `1` if the ad is disabled and thus not shown, otherwise `0` + * @property-read int $showOrder position of the ad in relation to the other ads at the same location */ class Ad extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/application/Application.class.php b/wcfsetup/install/files/lib/data/application/Application.class.php index 13654c09b5b..61819936632 100644 --- a/wcfsetup/install/files/lib/data/application/Application.class.php +++ b/wcfsetup/install/files/lib/data/application/Application.class.php @@ -18,12 +18,12 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $packageID id of the package which delivers the application - * @property-read string $domainName domain used to access the application (may not contain path components, see `$domainPath`) - * @property-read string $domainPath path used to access the application - * @property-read string $cookieDomain domain used to set cookies (corresponds to `domain` cookie property; may not contain path components) - * @property-read int $isTainted is `1` if the application is being uninstalled and thus should not be loaded during uninstallation, otherwise `0` - * @property-read int $landingPageID id of the page that is used as initial page when app is accessed without a controller name + * @property-read int $packageID id of the package which delivers the application + * @property-read string $domainName domain used to access the application (may not contain path components, see `$domainPath`) + * @property-read string $domainPath path used to access the application + * @property-read string $cookieDomain domain used to set cookies (corresponds to `domain` cookie property; may not contain path components) + * @property-read 0|1 $isTainted is `1` if the application is being uninstalled and thus should not be loaded during uninstallation, otherwise `0` + * @property-read ?int $landingPageID id of the page that is used as initial page when app is accessed without a controller name */ class Application extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/article/Article.class.php b/wcfsetup/install/files/lib/data/article/Article.class.php index 47f179dbbde..5afed4d0a7d 100644 --- a/wcfsetup/install/files/lib/data/article/Article.class.php +++ b/wcfsetup/install/files/lib/data/article/Article.class.php @@ -24,20 +24,20 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $articleID unique id of the article - * @property-read int|null $userID id of the user the article belongs to or `null` if the user does not exist anymore - * @property-read string $username name of the user the article belongs to - * @property-read int $time timestamp at which the comment has been written - * @property-read int $categoryID id of the category the article belongs to - * @property-read int $isMultilingual is `1` if the article is available in multiple languages, otherwise `0` - * @property-read int $publicationStatus publication status of the article (see `Article::UNPUBLISHED`, `Article::PUBLISHED` and `Article::DELAYED_PUBLICATION`) - * @property-read int $publicationDate timestamp at which the article will be automatically published or `0` if it has already been published - * @property-read int $enableComments is `1` if comments are enabled for the article, otherwise `0` - * @property-read int $views number of times the article has been viewed - * @property-read int $cumulativeLikes cumulative result of likes (counting `+1`) and dislikes (counting `-1`) for the article - * @property-read int $attachments number of attachments in the article descriptions - * @property-read int $isDeleted is 1 if the article is in trash bin, otherwise 0 - * @property-read int $hasLabels is `1` if labels are assigned to the article + * @property-read int $articleID unique id of the article + * @property-read ?int $userID id of the user the article belongs to or `null` if the user does not exist anymore + * @property-read string $username name of the user the article belongs to + * @property-read int $time timestamp at which the comment has been written + * @property-read int $categoryID id of the category the article belongs to + * @property-read 0|1 $isMultilingual is `1` if the article is available in multiple languages, otherwise `0` + * @property-read int $publicationStatus publication status of the article (see `Article::UNPUBLISHED`, `Article::PUBLISHED` and `Article::DELAYED_PUBLICATION`) + * @property-read int $publicationDate timestamp at which the article will be automatically published or `0` if it has already been published + * @property-read 0|1 $enableComments is `1` if comments are enabled for the article, otherwise `0` + * @property-read int $views number of times the article has been viewed + * @property-read int $cumulativeLikes cumulative result of likes (counting `+1`) and dislikes (counting `-1`) for the article + * @property-read int $attachments number of attachments in the article descriptions + * @property-read 0|1 $isDeleted is 1 if the article is in trash bin, otherwise 0 + * @property-read 0|1 $hasLabels is `1` if labels are assigned to the article */ class Article extends DatabaseObject implements ILinkableObject, IPopoverObject, IUserContent { diff --git a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php index 0eed721cbc2..fd9f5b49191 100644 --- a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php @@ -23,18 +23,18 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $articleContentID unique id of the article content - * @property-read int $articleID id of the article the article content belongs to - * @property-read ?int $languageID id of the article content's language - * @property-read string $title title of the article in the associated language - * @property-read ?string $content actual content of the article in the associated language - * @property-read ?string $teaser teaser of the article in the associated language or empty if no teaser exists - * @property-read ?int $imageID id of the (image) media object used as article image for the associated language or `null` if no image is used - * @property-read ?int $teaserImageID id of the (image) media object used as article teaser image for the associated language or `null` if no image is used - * @property-read int $hasEmbeddedObjects is `1` if there are embedded objects in the article content, otherwise `0` - * @property-read string $metaTitle title of the article used in the title tag - * @property-read string $metaDescription meta description of the article - * @property-read int $comments number of comments + * @property-read int $articleContentID unique id of the article content + * @property-read int $articleID id of the article the article content belongs to + * @property-read ?int $languageID id of the article content's language + * @property-read string $title title of the article in the associated language + * @property-read ?string $content actual content of the article in the associated language + * @property-read ?string $teaser teaser of the article in the associated language or empty if no teaser exists + * @property-read ?int $imageID id of the (image) media object used as article image for the associated language or `null` if no image is used + * @property-read ?int $teaserImageID id of the (image) media object used as article teaser image for the associated language or `null` if no image is used + * @property-read 0|1 $hasEmbeddedObjects is `1` if there are embedded objects in the article content, otherwise `0` + * @property-read string $metaTitle title of the article used in the title tag + * @property-read string $metaDescription meta description of the article + * @property-read int $comments number of comments */ class ArticleContent extends DatabaseObject implements ILinkableObject, IRouteController { diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index f127f39e323..1a3fae0d446 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -23,33 +23,33 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $attachmentID unique id of the attachment - * @property-read int $objectTypeID id of the `com.woltlab.wcf.attachment.objectType` object type - * @property-read int|null $objectID id of the attachment container object the attachment belongs to - * @property-read int|null $userID id of the user who uploaded the attachment or `null` if the user does not exist anymore or if the attachment has been uploaded by a guest - * @property-read string $tmpHash temporary hash used to identify uploaded attachments but not associated with an object yet or empty if the attachment has been associated with an object - * @property-read string $filename name of the physical attachment file - * @property-read int $filesize size of the physical attachment file - * @property-read string $fileType type of the physical attachment file - * @property-read string $fileHash hash of the physical attachment file - * @property-read int $isImage is `1` if the attachment is an image, otherwise `0` - * @property-read int $width width of the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $height height of the attachment if `$isImage` is `1`, otherwise `0` - * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise empty - * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read string $thumbnailType type of the thumbnail file for the attachment if `$isImage` is `1`, otherwise empty - * @property-read int $thumbnailSize size of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $downloads number of times the attachment has been downloaded - * @property-read int $lastDownloadTime timestamp at which the attachment has been downloaded the last time - * @property-read int $thumbnailWidth width of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $thumbnailHeight height of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read int $uploadTime timestamp at which the attachment has been uploaded - * @property-read int $showOrder position of the attachment in relation to the other attachment to the same message - * @property-read int|null $fileID - * @property-read int|null $thumbnailID - * @property-read int|null $tinyThumbnailID + * @property-read int $attachmentID unique id of the attachment + * @property-read int $objectTypeID id of the `com.woltlab.wcf.attachment.objectType` object type + * @property-read ?int $objectID id of the attachment container object the attachment belongs to + * @property-read ?int $userID id of the user who uploaded the attachment or `null` if the user does not exist anymore or if the attachment has been uploaded by a guest + * @property-read string $tmpHash temporary hash used to identify uploaded attachments but not associated with an object yet or empty if the attachment has been associated with an object + * @property-read string $filename name of the physical attachment file + * @property-read int $filesize size of the physical attachment file + * @property-read string $fileType type of the physical attachment file + * @property-read string $fileHash hash of the physical attachment file + * @property-read 0|1 $isImage is `1` if the attachment is an image, otherwise `0` + * @property-read int $width width of the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $height height of the attachment if `$isImage` is `1`, otherwise `0` + * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise empty + * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read string $thumbnailType type of the thumbnail file for the attachment if `$isImage` is `1`, otherwise empty + * @property-read int $thumbnailSize size of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $downloads number of times the attachment has been downloaded + * @property-read int $lastDownloadTime timestamp at which the attachment has been downloaded the last time + * @property-read int $thumbnailWidth width of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $thumbnailHeight height of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $uploadTime timestamp at which the attachment has been uploaded + * @property-read int $showOrder position of the attachment in relation to the other attachment to the same message + * @property-read ?int $fileID + * @property-read ?int $thumbnailID + * @property-read ?int $tinyThumbnailID */ class Attachment extends DatabaseObject implements ILinkableObject, IRouteController, IThumbnailFile, IImageDataProvider { diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php index 80e08b55a93..fd296c007a7 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php @@ -15,18 +15,18 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $bbcodeID unique id of the bbcode - * @property-read string $bbcodeTag tag of the bbcode - * @property-read int $packageID id of the package which delivers the bbcode or `1` if it has been created in the acp - * @property-read string $htmlOpen html code of the opening tag (without the less-than sign and greater-than sign) or empty if no such html code exists - * @property-read string $htmlClose html code of the closing tag (without the less-than sign and greater-than sign) or empty if no such html code exists - * @property-read string $className name of the PHP class implementing `wcf\system\bbcode\IBBCode` or empty if no such class exists - * @property-read int $isBlockElement is `1` if the bbcode represents a block element and thus can contain multiple lines, otherwise `0` - * @property-read string $wysiwygIcon css class name used as icon for the bbcode in the editor toolbar - * @property-read string $buttonLabel name of the language item used as button label for the bbcode in the editor toolbar - * @property-read int $isSourceCode is `1` if the bbcode's content is treated as source code, otherwise `0` - * @property-read int $showButton is `1` if a button for the bbcode will be shown in the editor toolbar, otherwise `0` - * @property-read int $originIsSystem is `1` if the bbcode has been delivered by a package, otherwise `0` (if the bbcode has been created by an admin in the acp) + * @property-read int $bbcodeID unique id of the bbcode + * @property-read string $bbcodeTag tag of the bbcode + * @property-read int $packageID id of the package which delivers the bbcode or `1` if it has been created in the acp + * @property-read string $htmlOpen html code of the opening tag (without the less-than sign and greater-than sign) or empty if no such html code exists + * @property-read string $htmlClose html code of the closing tag (without the less-than sign and greater-than sign) or empty if no such html code exists + * @property-read string $className name of the PHP class implementing `wcf\system\bbcode\IBBCode` or empty if no such class exists + * @property-read 0|1 $isBlockElement is `1` if the bbcode represents a block element and thus can contain multiple lines, otherwise `0` + * @property-read string $wysiwygIcon css class name used as icon for the bbcode in the editor toolbar + * @property-read string $buttonLabel name of the language item used as button label for the bbcode in the editor toolbar + * @property-read 0|1 $isSourceCode is `1` if the bbcode's content is treated as source code, otherwise `0` + * @property-read 0|1 $showButton is `1` if a button for the bbcode will be shown in the editor toolbar, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the bbcode has been delivered by a package, otherwise `0` (if the bbcode has been created by an admin in the acp) */ class BBCode extends ProcessibleDatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php index 74cf50bd718..e42d3644baa 100644 --- a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php @@ -12,13 +12,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $attributeID unique id of the bbcode attribute - * @property-read int $bbcodeID id of the bbcode the attribute belongs to - * @property-read int $attributeNo number of bbcode attribute - * @property-read string $attributeHtml html code used to render the bbcode attribute or empty if no such html code exists - * @property-read string $validationPattern regular expression used to validate the bbcode attribute's value or empty if no such regular expression exists - * @property-read int $required is `1` if the bbcode attribute is required of the bbcode, otherwise `0` - * @property-read int $useText is `1` if the bbcode's content will be used as the bbcode attribute value + * @property-read int $attributeID unique id of the bbcode attribute + * @property-read int $bbcodeID id of the bbcode the attribute belongs to + * @property-read int $attributeNo number of bbcode attribute + * @property-read string $attributeHtml html code used to render the bbcode attribute or empty if no such html code exists + * @property-read string $validationPattern regular expression used to validate the bbcode attribute's value or empty if no such regular expression exists + * @property-read 0|1 $required is `1` if the bbcode attribute is required of the bbcode, otherwise `0` + * @property-read 0|1 $useText is `1` if the bbcode's content will be used as the bbcode attribute value, otherwise `0` */ class BBCodeAttribute extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php index 1799421de81..f35cd637dea 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php @@ -18,12 +18,14 @@ * @copyright 2001-2020 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $providerID unique id of the bbcode media provider - * @property-read string $title title of the bbcode media provider (shown in acp) - * @property-read string $regex regular expression to recognize media elements/element urls - * @property-read string $html html code used to render media elements - * @property-read string $className callback class name - * @property-read int $isDisabled + * @property-read int $providerID unique id of the bbcode media provider + * @property-read string $name unique name of the bbcode media provider + * @property-read int $packageID + * @property-read string $title title of the bbcode media provider (shown in acp) + * @property-read string $regex regular expression to recognize media elements/element urls + * @property-read string $html html code used to render media elements + * @property-read string $className callback class name + * @property-read 0|1 $isDisabled */ class BBCodeMediaProvider extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php index 730611ff954..dbe1b10a01c 100644 --- a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php +++ b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php @@ -14,10 +14,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read string $type One of 'email', 'ipv4', 'ipv6' or 'username' - * @property-read string $hash SHA256 hash of the original value - * @property-read int $lastSeen Timestamp of the last report, derivation is up to 24hrs - * @property-read int $occurrences Number of times this value was reported, capped at 32,767 + * @property-read ?string $type One of 'email', 'ipv4', 'ipv6' or 'username' + * @property-read ?string $hash SHA256 hash of the original value + * @property-read string $lastSeen Timestamp of the last report, derivation is up to 24hrs + * @property-read int $occurrences Number of times this value was reported, capped at 32,767 * @since 5.2 */ class BlacklistEntry extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/blacklist/status/BlacklistStatus.class.php b/wcfsetup/install/files/lib/data/blacklist/status/BlacklistStatus.class.php index f1fe715a805..024c91ed2a2 100644 --- a/wcfsetup/install/files/lib/data/blacklist/status/BlacklistStatus.class.php +++ b/wcfsetup/install/files/lib/data/blacklist/status/BlacklistStatus.class.php @@ -16,11 +16,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read string $date ISO 8601 date (UTC) - * @property-read int $delta1 Is 1 if the first delta (00:00-05:59 UTC) of the day has been fetched, otherwise 0 - * @property-read int $delta2 Is 1 if the second delta (06:00-11:59 UTC) of the day has been fetched, otherwise 0 - * @property-read int $delta3 Is 1 if the third delta (12:00-17:59 UTC) of the day has been fetched, otherwise 0 - * @property-read int $delta4 Is 1 if the fourth delta (18:00-23:59 UTC) of the day has been fetched, otherwise 0 + * @property-read string $date ISO 8601 date (UTC) + * @property-read 0|1 $delta1 Is `1` if the first delta (00:00-05:59 UTC) of the day has been fetched, otherwise `0` + * @property-read 0|1 $delta2 Is `1` if the second delta (06:00-11:59 UTC) of the day has been fetched, otherwise `0` + * @property-read 0|1 $delta3 Is `1` if the third delta (12:00-17:59 UTC) of the day has been fetched, otherwise `0` + * @property-read 0|1 $delta4 Is `1` if the fourth delta (18:00-23:59 UTC) of the day has been fetched, otherwise `0` * @since 5.2 */ class BlacklistStatus extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index 5f6c417251b..5fc1697cd22 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -28,30 +28,30 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $boxID unique id of the box - * @property-read int|null $objectTypeID id of the box controller object type - * @property-read string $identifier unique textual identifier of the box - * @property-read string $name monolingual name of the box shown in the ACP - * @property-read string $boxType type of the box which determines the method of outputting its content (default box types are `text`, `html`, `tpl`, `system`) - * @property-read string $position name of the position on the page at which the box is shown - * @property-read int $showOrder position of the box in relation to its siblings - * @property-read int $visibleEverywhere is `1` if the box is visible on every page, otherwise `0` - * @property-read int $isMultilingual is `1` if the box content is available in multiple languages, otherwise `0` - * @property-read int $lastUpdateTime timestamp at which the box has been updated the last time - * @property-read string $cssClassName css class name(s) of the box - * @property-read int $showHeader is `1` if the box header will be shown, otherwise `0` - * @property-read int $originIsSystem is `1` if the box has been delivered by a package, otherwise `0` (i.e. the box has been created in the ACP) - * @property-read int $packageID id of the package which delivers the box or `1` if it has been created in the ACP - * @property-read int|null $menuID id of the menu whose menu items are shown in the contents if `$boxType = menu`, otherwise `null` - * @property-read int|null $linkPageID id of the (internal) page the box image and box title are linking to or `null` if no internal page is linked - * @property-read int $linkPageObjectID id of the object the (internal) page links refers to or `0` if no internal link is used or no specific object is linked - * @property-read string $externalURL external link used to for the box image and box title or empty if no external link is set + * @property-read int $boxID unique id of the box + * @property-read ?int $objectTypeID id of the box controller object type + * @property-read string $identifier unique textual identifier of the box + * @property-read string $name monolingual name of the box shown in the ACP + * @property-read string $boxType type of the box which determines the method of outputting its content (default box types are `text`, `html`, `tpl`, `system`) + * @property-read string $position name of the position on the page at which the box is shown + * @property-read int $showOrder position of the box in relation to its siblings + * @property-read 0|1 $visibleEverywhere is `1` if the box is visible on every page, otherwise `0` + * @property-read 0|1 $isMultilingual is `1` if the box content is available in multiple languages, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the box has been updated the last time + * @property-read string $cssClassName css class name(s) of the box + * @property-read 0|1 $showHeader is `1` if the box header will be shown, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the box has been delivered by a package, otherwise `0` (i.e. the box has been created in the ACP) + * @property-read int $packageID id of the package which delivers the box or `1` if it has been created in the ACP + * @property-read ?int $menuID id of the menu whose menu items are shown in the contents if `$boxType = menu`, otherwise `null` + * @property-read ?int $linkPageID id of the (internal) page the box image and box title are linking to or `null` if no internal page is linked + * @property-read int $linkPageObjectID id of the object the (internal) page links refers to or `0` if no internal link is used or no specific object is linked + * @property-read string $externalURL external link used to for the box image and box title or empty if no external link is set * @property-read mixed[] $additionalData array with additional data of the box - * @property-read int|null $limit number of objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise - * @property-read string|null $sortField sort field of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise - * @property-read string|null $sortOrder sort order of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise - * @property-read int $isDisabled is `1` if the box is disabled and thus is not displayed, otherwise `0` - * @property-read int $invertPermissions is `1` if the permissions are inverted + * @property-read ?int $limit number of objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise + * @property-read ?string $sortField sort field of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise + * @property-read ?string $sortOrder sort order of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise + * @property-read 0|1 $isDisabled is `1` if the box is disabled and thus is not displayed, otherwise `0` + * @property-read 0|1 $invertPermissions is `1` if the permissions are inverted */ class Box extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php b/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php index 0bbae521666..b91227c8ba9 100644 --- a/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php +++ b/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php @@ -16,13 +16,13 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $boxContentID unique id of the box content - * @property-read int $boxID id of the box the box content belongs to - * @property-read int $languageID id of the box content's language - * @property-read string $title title of the page in the associated language - * @property-read string $content actual content of the box in the associated language - * @property-read int|null $imageID id of the (image) media object used as box image for the associated language or `null` if no image is used - * @property-read int $hasEmbeddedObjects is `1` if the box content contains embedded objects, otherwise `0` + * @property-read int $boxContentID unique id of the box content + * @property-read int $boxID id of the box the box content belongs to + * @property-read ?int $languageID id of the box content's language + * @property-read string $title title of the page in the associated language + * @property-read ?string $content actual content of the box in the associated language + * @property-read ?int $imageID id of the (image) media object used as box image for the associated language or `null` if no image is used + * @property-read 0|1 $hasEmbeddedObjects is `1` if the box content contains embedded objects, otherwise `0` */ class BoxContent extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php index 34b8e6b36aa..e0ffe897822 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php @@ -15,10 +15,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $questionID unique id of the captcha question - * @property-read string $question question of the captcha or name of language item which contains the question - * @property-read string $answers newline-separated list of answers or name of language item which contains the answers - * @property-read int $isDisabled is `1` if the captcha question is disabled and thus not offered to answer, otherwise `0` + * @property-read int $questionID unique id of the captcha question + * @property-read string $question question of the captcha or name of language item which contains the question + * @property-read ?string $answers newline-separated list of answers or name of language item which contains the answers + * @property-read 0|1 $isDisabled is `1` if the captcha question is disabled and thus not offered to answer, otherwise `0` + * @property-read int $views + * @property-read int $correctSubmissions + * @property-read int $incorrectSubmissions */ class CaptchaQuestion extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index d6d602174aa..04e037e3c9f 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -20,15 +20,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $categoryID unique id of the category - * @property-read int $objectTypeID id of the `com.woltlab.wcf.category` object type - * @property-read int $parentCategoryID id of the category's parent category or `0` if it has no parent category - * @property-read string $title title of the category or name of language item which contains the title - * @property-read string $description description of the category or name of language item which contains the description - * @property-read int $descriptionUseHtml is `1` if html is enabled in the description, otherwise `0` - * @property-read int $showOrder position of the category in relation to its siblings - * @property-read int $time timestamp at which the comment has been created - * @property-read int $isDisabled is `1` if the category is disabled and thus neither accessible nor selectable, otherwise `0` + * @property-read int $categoryID unique id of the category + * @property-read int $objectTypeID id of the `com.woltlab.wcf.category` object type + * @property-read int $parentCategoryID id of the category's parent category or `0` if it has no parent category + * @property-read string $title title of the category or name of language item which contains the title + * @property-read ?string $description description of the category or name of language item which contains the description + * @property-read 0|1 $descriptionUseHtml is `1` if html is enabled in the description, otherwise `0` + * @property-read int $showOrder position of the category in relation to its siblings + * @property-read int $time timestamp at which the comment has been created + * @property-read 0|1 $isDisabled is `1` if the category is disabled and thus neither accessible nor selectable, otherwise `0` * @property-read mixed[] $additionalData array with additional data of the category */ class Category extends ProcessibleDatabaseObject implements IPermissionObject, IRouteController diff --git a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php index 42cc2784c37..efcb5f75f31 100644 --- a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php @@ -11,12 +11,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $actionID unique id of the clipboard action - * @property-read int $packageID id of the package which delivers the clipboard action - * @property-read string $actionName name and textual identifier of the clipboard action - * @property-read string $actionClassName PHP class name implementing `wcf\system\clipboard\action\IClipboardAction` - * @property-read int $showOrder position of the clipboard action in relation to the other clipboard actions + * @property-read int $actionID unique id of the clipboard action + * @property-read int $packageID id of the package which delivers the clipboard action + * @property-read string $actionName name and textual identifier of the clipboard action + * @property-read string $actionClassName PHP class name implementing `wcf\system\clipboard\action\IClipboardAction` + * @property-read int $showOrder position of the clipboard action in relation to the other clipboard actions */ -class ClipboardAction extends DatabaseObject -{ -} +class ClipboardAction extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/comment/Comment.class.php b/wcfsetup/install/files/lib/data/comment/Comment.class.php index f3762284fc5..f0195c2dd51 100644 --- a/wcfsetup/install/files/lib/data/comment/Comment.class.php +++ b/wcfsetup/install/files/lib/data/comment/Comment.class.php @@ -18,20 +18,20 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $commentID unique id of the comment - * @property-read int $objectTypeID id of the `com.woltlab.wcf.comment.commentableContent` object type - * @property-read int $objectID id of the commented object of the object type represented by `$objectTypeID` - * @property-read int $time timestamp at which the comment has been written - * @property-read ?int $userID id of the user who wrote the comment or `null` if the user does not exist anymore or if the comment has been written by a guest - * @property-read string $username name of the user or guest who wrote the comment - * @property-read string $message comment message - * @property-read int $responses number of responses on the comment - * @property-read string $responseIDs serialized array with the ids of the five latest comment responses - * @property-read int $unfilteredResponses number of all responses on the comment, including disabled ones - * @property-read string $unfilteredResponseIDs serialized array with the ids of the five latest comment responses, including disabled ones - * @property-read int $enableHtml is 1 if HTML will rendered in the comment, otherwise 0 - * @property-read int $isDisabled is 1 if the comment is disabled, otherwise 0 - * @property-read int $hasEmbeddedObjects is `1` if there are embedded objects in the comment, otherwise `0` + * @property-read int $commentID unique id of the comment + * @property-read int $objectTypeID id of the `com.woltlab.wcf.comment.commentableContent` object type + * @property-read int $objectID id of the commented object of the object type represented by `$objectTypeID` + * @property-read int $time timestamp at which the comment has been written + * @property-read ?int $userID id of the user who wrote the comment or `null` if the user does not exist anymore or if the comment has been written by a guest + * @property-read string $username name of the user or guest who wrote the comment + * @property-read string $message comment message + * @property-read int $responses number of responses on the comment + * @property-read string $responseIDs serialized array with the ids of the five latest comment responses + * @property-read int $unfilteredResponses number of all responses on the comment, including disabled ones + * @property-read string $unfilteredResponseIDs serialized array with the ids of the five latest comment responses, including disabled ones + * @property-read 0|1 $enableHtml is `1` if HTML will rendered in the comment, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the comment is disabled, otherwise `0` + * @property-read 0|1 $hasEmbeddedObjects is `1` if there are embedded objects in the comment, otherwise `0` */ class Comment extends DatabaseObject implements IMessage { diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php index d53e9d29fdd..9d6fd35f7bb 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php @@ -19,15 +19,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $responseID unique id of the comment response - * @property-read int $commentID id of the comment the comment response belongs to - * @property-read int $time timestamp at which the comment response has been written - * @property-read int|null $userID id of the user who wrote the comment response or `null` if the user does not exist anymore or if the comment response has been written by a guest - * @property-read string $username name of the user or guest who wrote the comment response - * @property-read string $message comment response message - * @property-read int $enableHtml is 1 if HTML will rendered in the comment response, otherwise 0 - * @property-read int $isDisabled is 1 if the comment response is disabled, otherwise 0 - * @property-read int $hasEmbeddedObjects is `1` if there are embedded objects in the comment response, otherwise `0` + * @property-read int $responseID unique id of the comment response + * @property-read int $commentID id of the comment the comment response belongs to + * @property-read int $time timestamp at which the comment response has been written + * @property-read ?int $userID id of the user who wrote the comment response or `null` if the user does not exist anymore or if the comment response has been written by a guest + * @property-read string $username name of the user or guest who wrote the comment response + * @property-read string $message comment response message + * @property-read 0|1 $enableHtml is `1` if HTML will rendered in the comment response, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the comment response is disabled, otherwise `0` + * @property-read 0|1 $hasEmbeddedObjects is `1` if there are embedded objects in the comment response, otherwise `0` */ class CommentResponse extends DatabaseObject implements IMessage { diff --git a/wcfsetup/install/files/lib/data/condition/Condition.class.php b/wcfsetup/install/files/lib/data/condition/Condition.class.php index ee07a33bdec..b7171427482 100644 --- a/wcfsetup/install/files/lib/data/condition/Condition.class.php +++ b/wcfsetup/install/files/lib/data/condition/Condition.class.php @@ -12,9 +12,9 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $conditionID unique id of the condition - * @property-read int $objectTypeID id of the condition object type (of different condition object type definitions) - * @property-read int $objectID id of the conditioned object of the object type represented by `$objectTypeID` + * @property-read int $conditionID unique id of the condition + * @property-read int $objectTypeID id of the condition object type (of different condition object type definitions) + * @property-read int $objectID id of the conditioned object of the object type represented by `$objectTypeID` * @property-read mixed[] $conditionData array with the condition data with is processed by the condition object type's processor */ class Condition extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/contact/option/ContactOption.class.php b/wcfsetup/install/files/lib/data/contact/option/ContactOption.class.php index 6a7abb82034..7ff3d7f1af2 100644 --- a/wcfsetup/install/files/lib/data/contact/option/ContactOption.class.php +++ b/wcfsetup/install/files/lib/data/contact/option/ContactOption.class.php @@ -4,7 +4,6 @@ use wcf\data\DatabaseObject; use wcf\data\ITitledObject; -use wcf\data\language\Language; use wcf\system\form\option\FormOptionHandler; use wcf\system\form\option\IFormOption; use wcf\system\WCF; @@ -17,14 +16,14 @@ * @license GNU Lesser General Public License * @since 3.1 * - * @property-read int $optionID unique id of the option - * @property-read string $optionTitle title of the option or name of language item which contains the title - * @property-read string $optionDescription description of the option or name of language item which contains the description - * @property-read string $optionType type of the option which determines its input and output - * @property-read string $configuration JSON-encoded configuration information depending on the option type - * @property-read int $showOrder position of the option in relation to the other options - * @property-read int $isDisabled is `1` if the option is disabled, otherwise `0` - * @property-read int $originIsSystem is `1` if the option has been delivered by a package, otherwise `0` (i.e. the option has been created in the ACP) + * @property-read int $optionID unique id of the option + * @property-read string $optionTitle title of the option or name of language item which contains the title + * @property-read ?string $optionDescription description of the option or name of language item which contains the description + * @property-read string $optionType type of the option which determines its input and output + * @property-read ?string $configuration JSON-encoded configuration information depending on the option type + * @property-read int $showOrder position of the option in relation to the other options + * @property-read 0|1 $isDisabled is `1` if the option is disabled, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the option has been delivered by a package, otherwise `0` (i.e. the option has been created in the ACP) */ class ContactOption extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php index 57c1d143791..992484b9a46 100644 --- a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php +++ b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php @@ -15,13 +15,13 @@ * @license GNU Lesser General Public License * @since 3.1 * - * @property-read int $recipientID unique id of the recipient - * @property-read string $name name of the recipient - * @property-read string $email email address of the recipient - * @property-read int $showOrder position of the recipient in relation to other recipients - * @property-read int $isAdministrator is `1` if the recipient is the administrator and the `email` value equals `MAIL_ADMIN_ADDRESS`, otherwise `0` - * @property-read int $isDisabled is `1` if the recipient is disabled and thus is not available for selection, otherwise `0` - * @property-read int $originIsSystem is `1` if the recipient has been delivered by a package, otherwise `0` (i.e. the recipient has been created in the ACP) + * @property-read int $recipientID unique id of the recipient + * @property-read string $name name of the recipient + * @property-read string $email email address of the recipient + * @property-read int $showOrder position of the recipient in relation to other recipients + * @property-read 0|1 $isAdministrator is `1` if the recipient is the administrator and the `email` value equals `MAIL_ADMIN_ADDRESS`, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the recipient is disabled and thus is not available for selection, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the recipient has been delivered by a package, otherwise `0` (i.e. the recipient has been created in the ACP) */ class ContactRecipient extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php b/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php index f3a79d6d420..f3914401537 100644 --- a/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php +++ b/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php @@ -11,10 +11,8 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $objectID unique id of the core object - * @property-read int $packageID id of the package which delivers the core object - * @property-read string $objectName PHP class name of the core object + * @property-read int $objectID unique id of the core object + * @property-read int $packageID id of the package which delivers the core object + * @property-read string $objectName PHP class name of the core object */ -class CoreObject extends DatabaseObject -{ -} +class CoreObject extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php index 84d3ff95b3f..b5cc8ec309a 100644 --- a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php @@ -16,25 +16,25 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $cronjobID unique id of the cronjob - * @property-read string $className PHP class name implementing `wcf\system\cronjob\ICronjob` - * @property-read int $packageID id of the package which delivers the cronjob or the id of the active application during creation in the ACP - * @property-read string $cronjobName name and textual identifier of the cronjob - * @property-read string $description description of the cronjob or name of language item which contains the description - * @property-read string $startMinute minutes in the hour at which the cronjob is executed, wildcard `*` (any minute) or a rule using wildcard `*` - * @property-read string $startHour hour in the day at which the cronjob is executed, wildcard `*` (any hour) or a rule using wildcard `*` - * @property-read string $startDom day of the month at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` - * @property-read string $startMonth month in the year in which the cronjob is executed, wildcard `*` (any month) or a rule using wildcard `*` - * @property-read string $startDow day in the week at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` - * @property-read int $lastExec timestamp at which the cronjob has been executed the last time - * @property-read int $nextExec timestamp at which the cronjob will be executed next - * @property-read int $afterNextExec timestamp at which the cronjob will be executed after next - * @property-read int $isDisabled is `1` if the cronjob is disabled and thus not executed, otherwise `0` - * @property-read int $canBeEdited is `1` if the cronjob can be edited in the ACP, otherwise `0` - * @property-read int $canBeDisabled is `1` if the cronjob can be disabled in the ACP so that it will not be executed, otherwise `0` - * @property-read int $state current state of the cronjob (see `Cronjob::READY`, `Cronjob::PENDING`, `Cronjob::EXECUTING` and `Cronjob::MAX_FAIL_COUNT`) - * @property-read int $failCount number of times the cronjob execution failed consecutively - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the cronjob to be executed + * @property-read int $cronjobID unique id of the cronjob + * @property-read string $className PHP class name implementing `wcf\system\cronjob\ICronjob` + * @property-read int $packageID id of the package which delivers the cronjob or the id of the active application during creation in the ACP + * @property-read string $cronjobName name and textual identifier of the cronjob + * @property-read string $description description of the cronjob or name of language item which contains the description + * @property-read string $startMinute minutes in the hour at which the cronjob is executed, wildcard `*` (any minute) or a rule using wildcard `*` + * @property-read string $startHour hour in the day at which the cronjob is executed, wildcard `*` (any hour) or a rule using wildcard `*` + * @property-read string $startDom day of the month at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` + * @property-read string $startMonth month in the year in which the cronjob is executed, wildcard `*` (any month) or a rule using wildcard `*` + * @property-read string $startDow day in the week at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` + * @property-read int $lastExec timestamp at which the cronjob has been executed the last time + * @property-read int $nextExec timestamp at which the cronjob will be executed next + * @property-read int $afterNextExec timestamp at which the cronjob will be executed after next + * @property-read 0|1 $isDisabled is `1` if the cronjob is disabled and thus not executed, otherwise `0` + * @property-read 0|1 $canBeEdited is `1` if the cronjob can be edited in the ACP, otherwise `0` + * @property-read 0|1 $canBeDisabled is `1` if the cronjob can be disabled in the ACP so that it will not be executed, otherwise `0` + * @property-read int $state current state of the cronjob (see `Cronjob::READY`, `Cronjob::PENDING`, `Cronjob::EXECUTING` and `Cronjob::MAX_FAIL_COUNT`) + * @property-read int $failCount number of times the cronjob execution failed consecutively + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the cronjob to be executed */ class Cronjob extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php index 158c5bb3201..cca86ed6162 100644 --- a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php @@ -11,11 +11,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $cronjobLogID unique id of the cronjob execution log - * @property-read int $cronjobID id of the cronjob the log belongs to - * @property-read int $execTime timestamp at which the cronjob has been executed - * @property-read int $success is `1` if the cronjob has been successfully executed, otherwise `0` - * @property-read string $error error message if the cronjob did not execute successfully, otherwise empty + * @property-read int $cronjobLogID unique id of the cronjob execution log + * @property-read int $cronjobID id of the cronjob the log belongs to + * @property-read int $execTime timestamp at which the cronjob has been executed + * @property-read 0|1 $success is `1` if the cronjob has been successfully executed, otherwise `0` + * @property-read ?string $error error message if the cronjob did not execute successfully, otherwise empty */ class CronjobLog extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php index d419fd41ed2..8988e037531 100644 --- a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php +++ b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php @@ -15,11 +15,11 @@ * @license GNU Lesser General Public License * @since 5.3 * - * @property-read int $itemID unique id of the missing language item log entry - * @property-read ?int $languageID id of the language the missing language item was requested for - * @property-read string $languageItem name of the missing language item - * @property-read int $lastTime timestamp of the last time the missing language item was requested - * @property-read string $stackTrace stack trace of how the missing language item was requested for the last time + * @property-read int $itemID unique id of the missing language item log entry + * @property-read ?int $languageID id of the language the missing language item was requested for + * @property-read string $languageItem name of the missing language item + * @property-read int $lastTime timestamp of the last time the missing language item was requested + * @property-read string $stackTrace stack trace of how the missing language item was requested for the last time */ class DevtoolsMissingLanguageItem extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php index 55d42426afd..139591d43a6 100644 --- a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php +++ b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php @@ -22,9 +22,9 @@ * @license GNU Lesser General Public License * @since 3.1 * - * @property-read int $projectID unique id of the project - * @property-read string $name internal name for display inside the ACP - * @property-read string $path file system path + * @property-read int $projectID unique id of the project + * @property-read string $name internal name for display inside the ACP + * @property-read ?string $path file system path */ class DevtoolsProject extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php index 32f0b7b2781..4a5a3c9e8c4 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php @@ -13,16 +13,16 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $entryID unique id of the edit history entry - * @property-read int $objectTypeID id of the `com.woltlab.wcf.edit.historySavingObject` object type - * @property-read int $objectID id of the edited object of the object type with id `$objectTypeID` - * @property-read int|null $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest - * @property-read string $username name of the user who has created the previous version of the object - * @property-read int $time timestamp at which the original version has been created - * @property-read int $obsoletedAt timestamp at which the edited version has been created and time used for clean up - * @property-read int|null $obsoletedByUserID id of the user who has created this version of the object - * @property-read string $message message of the edited object prior to the edit - * @property-read string $editReason reason for the edit + * @property-read int $entryID unique id of the edit history entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.edit.historySavingObject` object type + * @property-read int $objectID id of the edited object of the object type with id `$objectTypeID` + * @property-read ?int $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest + * @property-read string $username name of the user who has created the previous version of the object + * @property-read int $time timestamp at which the original version has been created + * @property-read int $obsoletedAt timestamp at which the edited version has been created and time used for clean up + * @property-read ?int $obsoletedByUserID id of the user who has created this version of the object + * @property-read ?string $message message of the edited object prior to the edit + * @property-read ?string $editReason reason for the edit */ class EditHistoryEntry extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntry.class.php b/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntry.class.php index fecb28e4922..db7886e87fa 100644 --- a/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntry.class.php +++ b/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntry.class.php @@ -14,14 +14,14 @@ * @copyright 2001-2021 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $entryID unique id of the log entry - * @property-read int $time timestamp when the delivery job was created - * @property-read string $subject the email's subject - * @property-read string $messageID the email's 'Message-ID' - * @property-read string $recipient the recipient ("RCPT TO") - * @property-read ?int $recipientID the recipient's userID (if the email is being sent to a registered user) - * @property-read string $status one of the `STATUS_*` constants - * @property-read string $message a human readable explanation for the status + * @property-read int $entryID unique id of the log entry + * @property-read int $time timestamp when the delivery job was created + * @property-read string $subject the email's subject + * @property-read string $messageID the email's 'Message-ID' + * @property-read string $recipient the recipient ("RCPT TO") + * @property-read ?int $recipientID the recipient's userID (if the email is being sent to a registered user) + * @property-read string $status one of the `STATUS_*` constants + * @property-read ?string $message a human readable explanation for the status * */ class EmailLogEntry extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php b/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php index 4ce489b316c..dc1343b0ecb 100644 --- a/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php +++ b/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php @@ -13,17 +13,17 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $listenerID unique id of the event listener - * @property-read int $packageID id of the package which delivers the event listener - * @property-read string $environment environment in which the event listener is executed, possible values: 'all', 'user' or 'admin' - * @property-read string $listenerName name and textual identifier of the event listener - * @property-read string $eventClassName name of the class in which the listened event is fired - * @property-read string $eventName name of the listened event - * @property-read string $listenerClassName class name of the event listener class - * @property-read int $inherit is `1` if the event listener is also executed for classes inheriting from the listened class, otherwise `0` - * @property-read int $niceValue value from [-128, 127] used to determine event listener execution order (event listeners with smaller `$niceValue` are executed first) - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the event listener to be executed - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the event listener to be executed + * @property-read int $listenerID unique id of the event listener + * @property-read int $packageID id of the package which delivers the event listener + * @property-read string $environment environment in which the event listener is executed, possible values: 'all', 'user' or 'admin' + * @property-read string $listenerName name and textual identifier of the event listener + * @property-read string $eventClassName name of the class in which the listened event is fired + * @property-read ?string $eventName name of the listened event + * @property-read string $listenerClassName class name of the event listener class + * @property-read 0|1 $inherit is `1` if the event listener is also executed for classes inheriting from the listened class, otherwise `0` + * @property-read int $niceValue value from [-128, 127] used to determine event listener execution order (event listeners with smaller `$niceValue` are executed first) + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the event listener to be executed + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the event listener to be executed */ class EventListener extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/file/File.class.php b/wcfsetup/install/files/lib/data/file/File.class.php index 86b748ef10b..183238fefd9 100644 --- a/wcfsetup/install/files/lib/data/file/File.class.php +++ b/wcfsetup/install/files/lib/data/file/File.class.php @@ -20,18 +20,18 @@ * @license GNU Lesser General Public License * @since 6.1 * - * @property-read int $fileID - * @property-read string $filename - * @property-read int $fileSize - * @property-read string $fileHash - * @property-read string $fileExtension - * @property-read int|null $objectTypeID - * @property-read string $mimeType - * @property-read int|null $width - * @property-read int|null $height - * @property-read string|null $fileHashWebp - * @property-read int $uploadTime - * @property-read string|null $exifData + * @property-read int $fileID + * @property-read string $filename + * @property-read int $fileSize + * @property-read string $fileHash + * @property-read string $fileExtension + * @property-read ?int $objectTypeID + * @property-read string $mimeType + * @property-read ?int $width + * @property-read ?int $height + * @property-read ?string $fileHashWebp + * @property-read ?int $uploadTime + * @property-read ?string $exifData */ class File extends DatabaseObject implements ITitledLinkObject, IImageDataProvider { diff --git a/wcfsetup/install/files/lib/data/file/temporary/FileTemporary.class.php b/wcfsetup/install/files/lib/data/file/temporary/FileTemporary.class.php index 99836c1ad58..45f4ad07f88 100644 --- a/wcfsetup/install/files/lib/data/file/temporary/FileTemporary.class.php +++ b/wcfsetup/install/files/lib/data/file/temporary/FileTemporary.class.php @@ -11,15 +11,15 @@ * @license GNU Lesser General Public License * @since 6.1 * - * @property-read string $identifier - * @property-read int $time - * @property-read string $filename - * @property-read int $fileSize - * @property-read string $fileHash - * @property-read int|null $objectTypeID - * @property-read string $context - * @property-read string $chunks - * @property-read string|null $exifData + * @property-read string $identifier + * @property-read int $time + * @property-read string $filename + * @property-read int $fileSize + * @property-read string $fileHash + * @property-read ?int $objectTypeID + * @property-read ?string $context + * @property-read string $chunks + * @property-read ?string $exifData */ class FileTemporary extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php index 9502d6ac413..5d56146600d 100644 --- a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php +++ b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php @@ -13,14 +13,14 @@ * @license GNU Lesser General Public License * @since 6.1 * - * @property-read int $thumbnailID - * @property-read int $fileID - * @property-read string $identifier - * @property-read string $fileHash - * @property-read string $fileExtension - * @property-read int $width - * @property-read int $height - * @property-read ?string $formatChecksum + * @property-read int $thumbnailID + * @property-read int $fileID + * @property-read string $identifier + * @property-read string $fileHash + * @property-read string $fileExtension + * @property-read int $width + * @property-read int $height + * @property-read ?string $formatChecksum */ class FileThumbnail extends DatabaseObject implements ILinkableObject { diff --git a/wcfsetup/install/files/lib/data/label/Label.class.php b/wcfsetup/install/files/lib/data/label/Label.class.php index ebb5f89a080..27afb9b98f3 100644 --- a/wcfsetup/install/files/lib/data/label/Label.class.php +++ b/wcfsetup/install/files/lib/data/label/Label.class.php @@ -14,11 +14,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $labelID unique id of the label - * @property-read int $groupID id of the label group the label belongs to - * @property-read string $label label text or name of language item which contains the label text - * @property-read string $cssClassName css class name used when displaying the label - * @property-read int $showOrder position of the label in relation to the other labels in the label group + * @property-read int $labelID unique id of the label + * @property-read int $groupID id of the label group the label belongs to + * @property-read string $label label text or name of language item which contains the label text + * @property-read string $cssClassName css class name used when displaying the label + * @property-read int $showOrder position of the label in relation to the other labels in the label group */ class Label extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php index 19ce9be856b..676c40ce443 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php @@ -13,12 +13,12 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $groupID unique id of the label group - * @property-read string $groupName name of the label group or name of language item which contains the label text - * @property-read string $groupDescription description of the label group (only shown in ACP) - * @property-read 1|0 $forceSelection is `1` if a label in the label group has to be selected when creating an object for which the label group is available, otherwise `0` - * @property-read 1|0 $sortAlphabetically is `1` if labels in the label group are sorted alphabetically by their translated name, otherwise `0` - * @property-read int $showOrder position of the label group in relation to the other label groups + * @property-read int $groupID unique id of the label group + * @property-read string $groupName name of the label group or name of language item which contains the label text + * @property-read string $groupDescription description of the label group (only shown in ACP) + * @property-read 0|1 $forceSelection is `1` if a label in the label group has to be selected when creating an object for which the label group is available, otherwise `0` + * @property-read 0|1 $sortAlphabetically is `1` if labels in the label group are sorted alphabetically by their translated name, otherwise `0` + * @property-read int $showOrder position of the label group in relation to the other label groups */ class LabelGroup extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index cb6d12b8a96..31471436021 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -15,14 +15,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $languageID unique id of the language - * @property-read string $languageCode code of the language according to ISO 639-1 - * @property-read string $languageName name of the language within the language itself - * @property-read string $countryCode code of the country using the language according to ISO 3166-1, used to determine the language's country flag - * @property-read int $isDefault is `1` if the language is the default language, otherwise `0` - * @property-read int $hasContent is `1` if the language can be selected when creating language-specific content, otherwise `0` - * @property-read int $isDisabled is `1` if the language is disabled and thus not selectable, otherwise `0` - * @property-read string $locale IETF language tag (BCP 47) + * @property-read int $languageID unique id of the language + * @property-read string $languageCode code of the language according to ISO 639-1 + * @property-read string $languageName name of the language within the language itself + * @property-read string $countryCode code of the country using the language according to ISO 3166-1, used to determine the language's country flag + * @property-read 0|1 $isDefault is `1` if the language is the default language, otherwise `0` + * @property-read 0|1 $hasContent is `1` if the language can be selected when creating language-specific content, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the language is disabled and thus not selectable, otherwise `0` + * @property-read string $locale IETF language tag (BCP 47) */ class Language extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php index ce8632ca61a..ee008ca4aca 100644 --- a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php +++ b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php @@ -12,8 +12,8 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $languageCategoryID unique id of the language category - * @property-read string $languageCategory name and textual identifier of the language category + * @property-read int $languageCategoryID unique id of the language category + * @property-read string $languageCategory name and textual identifier of the language category */ class LanguageCategory extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php b/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php index fd646a962f8..c71515ddd29 100644 --- a/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php +++ b/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php @@ -11,18 +11,18 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $languageItemID unique id of the language item - * @property-read int $languageID id of the language the language item belongs to - * @property-read string $languageItem name and textual identifier of the language item - * @property-read string $languageItemValue default value of the language item - * @property-read string $languageCustomItemValue custom value of the language item set by an admin - * @property-read int $languageUseCustomValue is `1` if the custom value is used instead of the default value, otherwise `0` - * @property-read int $languageItemOriginIsSystem is `1` if the language item has been delivered by a package, otherwise `0` (for example, if language item has been created for i18n content) - * @property-read int $languageCategoryID id of the language category the language item belongs to - * @property-read int|null $packageID id of the package the which delivers the language item or with which the language item is associated - * @property-read string $languageItemOldValue previous default value of the language item - * @property-read int $languageCustomItemDisableTime the timestamp at which the custom version has been disabled due to a change to the original value - * @property-read int $isCustomLanguageItem is `1` if the language item has been added manually via the ACP + * @property-read int $languageItemID unique id of the language item + * @property-read int $languageID id of the language the language item belongs to + * @property-read string $languageItem name and textual identifier of the language item + * @property-read string $languageItemValue default value of the language item + * @property-read ?string $languageCustomItemValue custom value of the language item set by an admin + * @property-read 0|1 $languageUseCustomValue is `1` if the custom value is used instead of the default value, otherwise `0` + * @property-read 0|1 $languageItemOriginIsSystem is `1` if the language item has been delivered by a package, otherwise `0` (for example, if language item has been created for i18n content) + * @property-read int $languageCategoryID id of the language category the language item belongs to + * @property-read int $packageID id of the package the which delivers the language item or with which the language item is associated + * @property-read ?string $languageItemOldValue previous default value of the language item + * @property-read ?int $languageCustomItemDisableTime the timestamp at which the custom version has been disabled due to a change to the original value + * @property-read 0|1 $isCustomLanguageItem is `1` if the language item has been added manually via the ACP */ class LanguageItem extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/like/Like.class.php b/wcfsetup/install/files/lib/data/like/Like.class.php index 732621baba6..32656e2eb66 100644 --- a/wcfsetup/install/files/lib/data/like/Like.class.php +++ b/wcfsetup/install/files/lib/data/like/Like.class.php @@ -15,14 +15,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $likeID unique id of the like - * @property-read int $objectID id of the liked object - * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type - * @property-read int|null $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest - * @property-read int $userID id of the user who created the like - * @property-read int $time timestamp at which the like has been created - * @property-read int $likeValue value of the like (`+1` = like, `-1` = dislike, see `Like::LIKE` and `Like::Dislike`) - * @property-read int $reactionTypeID reactionTypeID of the reaction + * @property-read int $likeID unique id of the like + * @property-read int $objectID id of the liked object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type + * @property-read ?int $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest + * @property-read int $userID id of the user who created the like + * @property-read int $time timestamp at which the like has been created + * @property-read int $likeValue value of the like (`+1` = like, `-1` = dislike, see `Like::LIKE` and `Like::Dislike`) + * @property-read int $reactionTypeID reactionTypeID of the reaction */ class Like extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php index 89cbb8e8b60..20f733f55d8 100644 --- a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php @@ -15,16 +15,16 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $likeObjectID unique id of the liked object - * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type - * @property-read int $objectID id of the liked object - * @property-read ?int $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest - * @property-read int $likes number of likes of the liked object - * @property-read int $dislikes legacy column, not used anymore - * @property-read int $cumulativeLikes number of likes of the liked object + * @property-read int $likeObjectID unique id of the liked object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type + * @property-read int $objectID id of the liked object + * @property-read ?int $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest + * @property-read int $likes number of likes of the liked object + * @property-read int $dislikes legacy column, not used anymore + * @property-read int $cumulativeLikes number of likes of the liked object * @property-read ?string $cachedUsers serialized array with the ids and names of the three users who liked (+1) the object last * @property-read ?string $cachedReactions serialized array with the reactionTypeIDs and the count of the reactions - * @property-read int $reactionTypeID + * @property-read int $reactionTypeID * @phpstan-type ReactionData array{ * reactionCount: int, * renderedReactionIcon: string, diff --git a/wcfsetup/install/files/lib/data/media/Media.class.php b/wcfsetup/install/files/lib/data/media/Media.class.php index 4924c91938d..9cd410e2538 100644 --- a/wcfsetup/install/files/lib/data/media/Media.class.php +++ b/wcfsetup/install/files/lib/data/media/Media.class.php @@ -20,40 +20,40 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $mediaID unique id of the media file - * @property-read int $categoryID id of the category the media file belongs to or `null` if it belongs to no category - * @property-read string $filename name of the physical media file - * @property-read int $filesize size of the physical media file - * @property-read string $fileType type of the physical media file - * @property-read string $fileHash hash of the physical media file - * @property-read int $uploadTime timestamp at which the media file has been uploaded - * @property-read int $fileUpdateTime timestamp at which the media file was updated the last or `0` if it has not been updated - * @property-read int|null $userID id of the user who uploaded the media file or null if the user does not exist anymore - * @property-read string $username name of the user who uploaded the media file - * @property-read int|null $languageID id of the language associated with the media file or null if the media file is multilingual or if the language has been deleted - * @property-read int $isMultilingual is `1` if the media file's title, description and altText is available in multiple languages, otherwise `0` - * @property-read int $captionEnableHtml is `1` if html code in caption is supported, otherwise `0` - * @property-read int $isImage is `1` if the media file is an image, otherwise `0` - * @property-read int $width width of the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $height height of the media file if `$isImage` is `1`, otherwise `0` - * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read string $smallThumbnailType type of the small thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read int $smallThumbnailSize size of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $smallThumbnailWidth width of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $smallThumbnailHeight height of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read string $mediumThumbnailType type of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read int $mediumThumbnailSize size of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $mediumThumbnailWidth width of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $mediumThumbnailHeight height of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read string $largeThumbnailType type of the large thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read int $largeThumbnailSize size of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $largeThumbnailWidth width of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $largeThumbnailHeight height of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read int $downloads number of times the media file has been downloaded - * @property-read int $lastDownloadTime timestamp at which the media file has been downloaded the last time + * @property-read int $mediaID unique id of the media file + * @property-read ?int $categoryID id of the category the media file belongs to or `null` if it belongs to no category + * @property-read string $filename name of the physical media file + * @property-read int $filesize size of the physical media file + * @property-read string $fileType type of the physical media file + * @property-read string $fileHash hash of the physical media file + * @property-read int $uploadTime timestamp at which the media file has been uploaded + * @property-read int $fileUpdateTime timestamp at which the media file was updated the last or `0` if it has not been updated + * @property-read ?int $userID id of the user who uploaded the media file or null if the user does not exist anymore + * @property-read string $username name of the user who uploaded the media file + * @property-read ?int $languageID id of the language associated with the media file or null if the media file is multilingual or if the language has been deleted + * @property-read 0|1 $isMultilingual is `1` if the media file's title, description and altText is available in multiple languages, otherwise `0` + * @property-read 0|1 $captionEnableHtml is `1` if html code in caption is supported, otherwise `0` + * @property-read 0|1 $isImage is `1` if the media file is an image, otherwise `0` + * @property-read int $width width of the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $height height of the media file if `$isImage` is `1`, otherwise `0` + * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise empty + * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read string $smallThumbnailType type of the small thumbnail file for the media file if `$isImage` is `1`, otherwise empty + * @property-read int $smallThumbnailSize size of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $smallThumbnailWidth width of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $smallThumbnailHeight height of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read string $mediumThumbnailType type of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise empty + * @property-read int $mediumThumbnailSize size of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $mediumThumbnailWidth width of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $mediumThumbnailHeight height of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read string $largeThumbnailType type of the large thumbnail file for the media file if `$isImage` is `1`, otherwise empty + * @property-read int $largeThumbnailSize size of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $largeThumbnailWidth width of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $largeThumbnailHeight height of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $downloads number of times the media file has been downloaded + * @property-read int $lastDownloadTime timestamp at which the media file has been downloaded the last time */ class Media extends DatabaseObject implements ILinkableObject, IRouteController, IThumbnailFile, IImageDataProvider { diff --git a/wcfsetup/install/files/lib/data/menu/Menu.class.php b/wcfsetup/install/files/lib/data/menu/Menu.class.php index cb93b82c7fe..6ef794eaab6 100644 --- a/wcfsetup/install/files/lib/data/menu/Menu.class.php +++ b/wcfsetup/install/files/lib/data/menu/Menu.class.php @@ -17,11 +17,11 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $menuID unique id of the menu - * @property-read string $identifier textual identifier of the menu - * @property-read string $title title of the menu or name of language item which contains the title - * @property-read int $originIsSystem is `1` if the menu has been delivered by a package, otherwise `0` (if the menu has been created by an admin in the ACP) - * @property-read int $packageID id of the package the which delivers the menu or `1` if it has been created in the ACP + * @property-read int $menuID unique id of the menu + * @property-read string $identifier textual identifier of the menu + * @property-read string $title title of the menu or name of language item which contains the title + * @property-read 0|1 $originIsSystem is `1` if the menu has been delivered by a package, otherwise `0` (if the menu has been created by an admin in the ACP) + * @property-read int $packageID id of the package the which delivers the menu or `1` if it has been created in the ACP */ class Menu extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php index b7e60c6c808..fb86d45dd1d 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php @@ -21,19 +21,19 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $itemID unique id of the menu item - * @property-read int $menuID id of the menu the menu item belongs to - * @property-read int|null $parentItemID id of the menu item's parent menu item or null if it has no parent menu item - * @property-read string $identifier textual identifier of the menu item - * @property-read string $title title of the menu item or name of language item which contains title - * @property-read int|null $pageID id of the linked `wcf\data\page\Page` object or null of no such page is linked - * @property-read int $pageObjectID id of the object required to show the page referenced by `$pageID` - * @property-read string $externalURL external link of the menu item - * @property-read int $showOrder position of the menu item in relation to its siblings - * @property-read int $isDisabled is `1` if the menu item is disabled and thus not shown in the menu, otherwise `0` - * @property-read int $originIsSystem is `1` if the menu item has been delivered by a package, otherwise `0` (if the menu item has been created by an admin in the ACP) - * @property-read int $packageID id of the package the which delivers the menu item or `1` if it has been created in the ACP - * @property-read string $urlParameters + * @property-read int $itemID unique id of the menu item + * @property-read int $menuID id of the menu the menu item belongs to + * @property-read ?int $parentItemID id of the menu item's parent menu item or null if it has no parent menu item + * @property-read string $identifier textual identifier of the menu item + * @property-read string $title title of the menu item or name of language item which contains title + * @property-read ?int $pageID id of the linked `wcf\data\page\Page` object or null of no such page is linked + * @property-read int $pageObjectID id of the object required to show the page referenced by `$pageID` + * @property-read string $externalURL external link of the menu item + * @property-read int $showOrder position of the menu item in relation to its siblings + * @property-read 0|1 $isDisabled is `1` if the menu item is disabled and thus not shown in the menu, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the menu item has been delivered by a package, otherwise `0` (if the menu item has been created by an admin in the ACP) + * @property-read int $packageID id of the package the which delivers the menu item or `1` if it has been created in the ACP + * @property-read string $urlParameters */ class MenuItem extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php index ffc888d2637..d8ad638b5b5 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php @@ -14,19 +14,19 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $queueID unique id of the moderation queue entry - * @property-read int $objectTypeID id of the `com.woltlab.wcf.moderation.type` object type - * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the moderation queue entry belongs to - * @property-read int $containerID id of the object's container object to which the modification log entry belongs to or `0` if no such container object exists or is logged - * @property-read int|null $userID id of the user who created the moderation queue entry or `null` if the user does not exist anymore or if the moderation queue entry has been created by a guest - * @property-read int $time timestamp at which the moderation queue entry has been created - * @property-read int|null $assignedUserID id of the user to which the moderation queue entry is assigned or `null` if it is not assigned to any user - * @property-read int $status status of the moderation queue entry (see `ModerationQueue::STATUS_*` constants) - * @property-read int $comments number of comments on the moderation queue entry - * @property-read int $lastChangeTime timestamp at which the moderation queue entry has been changed the last time + * @property-read int $queueID unique id of the moderation queue entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.moderation.type` object type + * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the moderation queue entry belongs to + * @property-read int $containerID id of the object's container object to which the modification log entry belongs to or `0` if no such container object exists or is logged + * @property-read ?int $userID id of the user who created the moderation queue entry or `null` if the user does not exist anymore or if the moderation queue entry has been created by a guest + * @property-read int $time timestamp at which the moderation queue entry has been created + * @property-read ?int $assignedUserID id of the user to which the moderation queue entry is assigned or `null` if it is not assigned to any user + * @property-read int $status status of the moderation queue entry (see `ModerationQueue::STATUS_*` constants) + * @property-read int $comments number of comments on the moderation queue entry + * @property-read int $lastChangeTime timestamp at which the moderation queue entry has been changed the last time * @property-read mixed[] $additionalData array with additional data of the moderation queue entry - * @property-read bool $markAsJustified true if the report was closed, but it was actually justified and other actions may have been taken - * @property-read string $message + * @property-read bool $markAsJustified true if the report was closed, but it was actually justified and other actions may have been taken + * @property-read string $message */ class ModerationQueue extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php index 1ba34b0e529..73ba0c57140 100644 --- a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php +++ b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php @@ -11,14 +11,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $logID unique id of the modification log entry - * @property-read int $objectTypeID id of the `com.woltlab.wcf.modifiableContent` object type - * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the modification log entry belongs to - * @property-read int|null $parentObjectID id of the object's parent object to which the modification log entry belongs to or `null` if no such parent object exists or is logged - * @property-read int|null $userID id of the user who caused the modification log entry or `null` if the user does not exist anymore or if the modification log entry has been caused by a guest - * @property-read string $username name of the user or guest who caused the modification log entry - * @property-read int $time timestamp at which the modification log entry has been created - * @property-read string $action name of the modification action that is logged + * @property-read int $logID unique id of the modification log entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.modifiableContent` object type + * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the modification log entry belongs to + * @property-read ?int $parentObjectID id of the object's parent object to which the modification log entry belongs to or `null` if no such parent object exists or is logged + * @property-read ?int $userID id of the user who caused the modification log entry or `null` if the user does not exist anymore or if the modification log entry has been caused by a guest + * @property-read string $username name of the user or guest who caused the modification log entry + * @property-read int $time timestamp at which the modification log entry has been created + * @property-read string $action name of the modification action that is logged + * @property-read 0|1 $hidden * @property-read mixed[] $additionalData array with additional data of the modification log entry */ class ModificationLog extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index c2eedc27023..36fec748be5 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -17,14 +17,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $noticeID unique id of the notice - * @property-read string $noticeName name of the notice shown in ACP - * @property-read string $notice text of the notice or name of language item which contains the text - * @property-read int $noticeUseHtml is `1` if the notice text will be rendered as HTML, otherwise `0` - * @property-read string $cssClassName css class name(s) used for the notice HTML element - * @property-read int $showOrder position of the notice in relation to the other notices - * @property-read int $isDisabled is `1` if the notice is disabled and thus not shown, otherwise `0` - * @property-read int $isDismissible is `1` if the notice can be dismissed by users, otherwise `0` + * @property-read int $noticeID unique id of the notice + * @property-read string $noticeName name of the notice shown in ACP + * @property-read ?string $notice text of the notice or name of language item which contains the text + * @property-read 0|1 $noticeUseHtml is `1` if the notice text will be rendered as HTML, otherwise `0` + * @property-read string $cssClassName css class name(s) used for the notice HTML element + * @property-read int $showOrder position of the notice in relation to the other notices + * @property-read 0|1 $isDisabled is `1` if the notice is disabled and thus not shown, otherwise `0` + * @property-read 0|1 $isDismissible is `1` if the notice can be dismissed by users, otherwise `0` */ class Notice extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php index a2ee21fe243..40da7f11195 100644 --- a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php +++ b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php @@ -11,12 +11,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $definitionID unique id of the object type definition - * @property-read string $definitionName textual identifier of the object type definition - * @property-read int $packageID id of the package the which delivers the object type definition - * @property-read string $interfaceName PHP interface name the PHP classes of the object types' processors need to implement - * @property-read string $categoryName + * @property-read int $definitionID unique id of the object type definition + * @property-read string $definitionName textual identifier of the object type definition + * @property-read int $packageID id of the package the which delivers the object type definition + * @property-read string $interfaceName PHP interface name the PHP classes of the object types' processors need to implement + * @property-read string $categoryName */ -class ObjectTypeDefinition extends DatabaseObject -{ -} +class ObjectTypeDefinition extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/option/Option.class.php b/wcfsetup/install/files/lib/data/option/Option.class.php index 7210ee9a7f5..aa8c41f8df8 100644 --- a/wcfsetup/install/files/lib/data/option/Option.class.php +++ b/wcfsetup/install/files/lib/data/option/Option.class.php @@ -16,21 +16,21 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $optionID unique id of the option - * @property-read int $packageID id of the package the which delivers the option - * @property-read string $optionName name and textual identifier of the option - * @property-read string $categoryName name of the option category the option belongs to - * @property-read string $optionType textual identifier of the option (corresponds to a class implementing `wcf\system\option\IOptionType`) + * @property-read int $optionID unique id of the option + * @property-read int $packageID id of the package the which delivers the option + * @property-read string $optionName name and textual identifier of the option + * @property-read string $categoryName name of the option category the option belongs to + * @property-read string $optionType textual identifier of the option (corresponds to a class implementing `wcf\system\option\IOptionType`) * @property-read ?string $optionValue value of the option - * @property-read string $validationPattern regular expression used to validate the option's value or empty if no such regular expression exists - * @property-read string $selectOptions newline-separated list of selectable options for a selectable option type (line pattern: `{value}:{language item name}`) - * @property-read string $enableOptions list of options that are enabled based on the option's value (simple comma-separated list of boolean options, otherwise newline-separated list with line pattern: `{select value}:{comma-separated list}`) - * @property-read int $showOrder position of the option in relation to the other option in the option category - * @property-read int $hidden is `1` if the option is hidden and thus cannot be explicitly set by in the acp, otherwise `0` - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to set the option value - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the option to be editable - * @property-read int $supportI18n is `1` if the option supports different values for all available languages, otherwise `0` - * @property-read int $requireI18n is `1` if `$supportI18n = 1` and the option's value has to explicitly set for all values so that the `monolingual` option is not available, otherwise `0` + * @property-read ?string $validationPattern regular expression used to validate the option's value or empty if no such regular expression exists + * @property-read ?string $selectOptions newline-separated list of selectable options for a selectable option type (line pattern: `{value}:{language item name}`) + * @property-read ?string $enableOptions list of options that are enabled based on the option's value (simple comma-separated list of boolean options, otherwise newline-separated list with line pattern: `{select value}:{comma-separated list}`) + * @property-read int $showOrder position of the option in relation to the other option in the option category + * @property-read 0|1 $hidden is `1` if the option is hidden and thus cannot be explicitly set by in the acp, otherwise `0` + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to set the option value + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the option to be editable + * @property-read 0|1 $supportI18n is `1` if the option supports different values for all available languages, otherwise `0` + * @property-read 0|1 $requireI18n is `1` if `$supportI18n = 1` and the option's value has to explicitly set for all values so that the `monolingual` option is not available, otherwise `0` * @property-read mixed[] $additionalData array with additional data of the option */ class Option extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php b/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php index dcebb8e8404..f4a5a320278 100644 --- a/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php @@ -13,13 +13,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $categoryID unique id of the option category - * @property-read int $packageID id of the package the which delivers the option category - * @property-read string $categoryName name and textual identifier of the option category - * @property-read string $parentCategoryName name of the option category's parent category or empty if the option category has no parent category - * @property-read int $showOrder position of the option category in relation its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the option category - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the option category to be shown + * @property-read int $categoryID unique id of the option category + * @property-read int $packageID id of the package the which delivers the option category + * @property-read string $categoryName name and textual identifier of the option category + * @property-read string $parentCategoryName name of the option category's parent category or empty if the option category has no parent category + * @property-read int $showOrder position of the option category in relation its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the option category + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the option category to be shown */ class OptionCategory extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index 0cf2f71b1be..7bb87ef98e0 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -19,19 +19,19 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $packageID unique id of the package - * @property-read string $package unique textual identifier of the package - * @property-read string $packageDir relative directory to Core in which the application is installed or empty if package is no application or Core - * @property-read string $packageName name of the package or name of language item which contains the name - * @property-read string $packageDescription description of the package or name of language item which contains the description - * @property-read string $packageVersion installed version of package - * @property-read int $packageDate timestamp at which the installed package version has been released - * @property-read int $installDate timestamp at which the package has been installed - * @property-read int $updateDate timestamp at which the package has been updated or installed if it has not been updated yet - * @property-read string $packageURL external url to website with more information about the package - * @property-read int $isApplication is `1` if the package delivers an application, otherwise `0` - * @property-read string $author author of the package - * @property-read string $authorURL external url to the website of the package author + * @property-read int $packageID unique id of the package + * @property-read string $package unique textual identifier of the package + * @property-read string $packageDir relative directory to Core in which the application is installed or empty if package is no application or Core + * @property-read string $packageName name of the package or name of language item which contains the name + * @property-read string $packageDescription description of the package or name of language item which contains the description + * @property-read string $packageVersion installed version of package + * @property-read int $packageDate timestamp at which the installed package version has been released + * @property-read int $installDate timestamp at which the package has been installed + * @property-read int $updateDate timestamp at which the package has been updated or installed if it has not been updated yet + * @property-read string $packageURL external url to website with more information about the package + * @property-read 0|1 $isApplication is `1` if the package delivers an application, otherwise `0` + * @property-read string $author author of the package + * @property-read string $authorURL external url to the website of the package author */ class Package extends DatabaseObject implements ILinkableObject, IRouteController { diff --git a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php index c25a4ec61f3..a7842a9cebc 100644 --- a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php @@ -12,10 +12,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read string $pluginName unique name and textual identifier of the package installation plugin - * @property-read int|null $packageID id of the package the which delivers the package installation plugin - * @property-read int $priority priority in which the package installation plugins are installed, `1` for Core package installation plugins (executed first) and `0` for other package installation plugins - * @property-read string $className name of the PHP class implementing `wcf\system\package\plugin\IPackageInstallationPlugin` handling installing and uninstalling handled data + * @property-read string $pluginName unique name and textual identifier of the package installation plugin + * @property-read int $packageID id of the package the which delivers the package installation plugin + * @property-read int $priority priority in which the package installation plugins are installed, `1` for Core package installation plugins (executed first) and `0` for other package installation plugins + * @property-read string $className name of the PHP class implementing `wcf\system\package\plugin\IPackageInstallationPlugin` handling installing and uninstalling handled data */ class PackageInstallationPlugin extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php index 96943b960a9..7ad88b774ac 100644 --- a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php @@ -12,17 +12,17 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $queueID unique id of the package installation queue entry - * @property-read int $parentQueueID id of the package installation queue entry's parent entry or `0` if it has no parent entry - * @property-read int $processNo numerical identifier of a group of dependent package installation queue entries, i.e. a parent entry and all of its children - * @property-read int $userID id of the user who started the package installation, update or uninstallation - * @property-read string $package identifier of the relevant package - * @property-read string $packageName name of the relevant package - * @property-read int|null $packageID id of relevant package - * @property-read string $archive location of the package file for `$action = install` or `$action = update`, otherwise empty - * @property-read string $action action the package installation queue entry belongs to (`install`, `update`, `uninstall`) - * @property-read int $done is `1` if the package installation queue entry has been completed, otherwise `0` - * @property-read int $isApplication is `1` if the package installation queue entry belongs to an application, otherwise `0` + * @property-read int $queueID unique id of the package installation queue entry + * @property-read int $parentQueueID id of the package installation queue entry's parent entry or `0` if it has no parent entry + * @property-read int $processNo numerical identifier of a group of dependent package installation queue entries, i.e. a parent entry and all of its children + * @property-read int $userID id of the user who started the package installation, update or uninstallation + * @property-read string $package identifier of the relevant package + * @property-read string $packageName name of the relevant package + * @property-read ?int $packageID id of relevant package + * @property-read string $archive location of the package file for `$action = install` or `$action = update`, otherwise empty + * @property-read string $action action the package installation queue entry belongs to (`install`, `update`, `uninstall`) + * @property-read 0|1 $done is `1` if the package installation queue entry has been completed, otherwise `0` + * @property-read 0|1 $isApplication is `1` if the package installation queue entry belongs to an application, otherwise `0` */ class PackageInstallationQueue extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php index 69c1f5ea6b5..850124c08df 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php @@ -11,15 +11,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $packageUpdateID unique id of the package update - * @property-read int $packageUpdateServerID id of the package update server the package update is located on - * @property-read string $package identifier of the package - * @property-read string $packageName name of the package - * @property-read string $packageDescription description of the package - * @property-read string $author author of the package - * @property-read string $authorURL external url to the website of the package author - * @property-read int $isApplication is `1` if the package update belongs to an application, otherwise `0` - * @property-read int $pluginStoreFileID file id for related package on pluginstore.woltlab.com, otherwise `0` + * @property-read int $packageUpdateID unique id of the package update + * @property-read int $packageUpdateServerID id of the package update server the package update is located on + * @property-read string $package identifier of the package + * @property-read string $packageName name of the package + * @property-read string $packageDescription description of the package + * @property-read string $author author of the package + * @property-read string $authorURL external url to the website of the package author + * @property-read 0|1 $isApplication is `1` if the package update belongs to an application, otherwise `0` + * @property-read int $pluginStoreFileID file id for related package on pluginstore.woltlab.com, otherwise `0` */ class PackageUpdate extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index 364d7f79625..7a85e7ccb38 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -19,15 +19,16 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $packageUpdateServerID unique id of the package update server - * @property-read string $serverURL url of the package update server - * @property-read string $loginUsername username used to login on the package update server - * @property-read string $loginPassword password used to login on the package update server - * @property-read int $isDisabled is `1` if the package update server is disabled and thus not considered for package updates, otherwise `0` - * @property-read int $lastUpdateTime timestamp at which the data of the package update server has been fetched the last time - * @property-read string $status status of the package update server (`online` or `offline`) - * @property-read string $errorMessage error message if the package update server if offline or empty otherwise - * @property-read string $apiVersion version of the supported package update server api (`2.0`, `2.1`) + * @property-read int $packageUpdateServerID unique id of the package update server + * @property-read string $serverURL url of the package update server + * @property-read string $loginUsername username used to login on the package update server + * @property-read string $loginPassword password used to login on the package update server + * @property-read 0|1 $isDisabled is `1` if the package update server is disabled and thus not considered for package updates, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the data of the package update server has been fetched the last time + * @property-read string $status status of the package update server (`online` or `offline`) + * @property-read ?string $errorMessage error message if the package update server if offline or empty otherwise + * @property-read string $apiVersion version of the supported package update server api (`2.0`, `2.1`) + * @property-read ?string $metaData */ class PackageUpdateServer extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php index f978eda8bbc..04d02e8c2c5 100644 --- a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php +++ b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php @@ -11,14 +11,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $packageUpdateVersionID unique id of the package update version - * @property-read int $packageUpdateID id of the package update the package update version belongs to - * @property-read string $packageVersion version number of the package update version - * @property-read int $packageDate date of the package update version - * @property-read string $filename location of the package update version file or empty if no file is given - * @property-read string $license name of the license of the package update version or empty if no license is given - * @property-read string $licenseURL link to the license of the package update version or empty if no license or license link is given - * @property-read int $isAccessible is `1` if the package update version is accessible and thus can be installed, otherwise `0` + * @property-read int $packageUpdateVersionID unique id of the package update version + * @property-read int $packageUpdateID id of the package update the package update version belongs to + * @property-read string $packageVersion version number of the package update version + * @property-read int $packageDate date of the package update version + * @property-read string $filename location of the package update version file or empty if no file is given + * @property-read string $license name of the license of the package update version or empty if no license is given + * @property-read string $licenseURL link to the license of the package update version or empty if no license or license link is given + * @property-read 0|1 $isAccessible is `1` if the package update version is accessible and thus can be installed, otherwise `0` */ class PackageUpdateVersion extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index 569fbc65730..a6375db1e0f 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -28,31 +28,31 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $pageID unique id of the page - * @property-read ?int $parentPageID id of the page's parent page or `null` if it has no parent page - * @property-read string $identifier unique textual identifier of the page - * @property-read string $name monolingual name of the page shown in the ACP - * @property-read string $pageType type of the page, default types: `text`, `html`, `tpl` `system` - * @property-read int $isDisabled is `1` if the page is disabled and thus cannot be accessed, otherwise `0` - * @property-read int $isMultilingual is `1` if the page is available in different languages, otherwise `0` - * @property-read int $originIsSystem is `1` if the page has been delivered by a package, otherwise `0` (i.e. the page has been created in the ACP) - * @property-read int $packageID id of the package the which delivers the page or `1` if it has been created in the ACP - * @property-read ?int $applicationPackageID id of the package of the application the pages belongs to - * @property-read ?int $overrideApplicationPackageID id of the package of the application that the page virtually belongs to - * @property-read string $controller name of the page controller class - * @property-read string $handler name of the page handler class for `system` pages or empty - * @property-read string $controllerCustomURL custom url of the page - * @property-read int $requireObjectID is `1` if the page requires an object id parameter, otherwise `0` - * @property-read int $hasFixedParent is `1` if the page's parent page cannot be changed, otherwise `0` - * @property-read int $lastUpdateTime timestamp at which the page has been updated the last time - * @property-read string $cssClassName css class name(s) of the page - * @property-read int $availableDuringOfflineMode is `1` if the page is available during offline mode, otherwise `0` - * @property-read int $allowSpidersToIndex is `1` if the page is accessible for search spiders, otherwise `0` - * @property-read int $excludeFromLandingPage is `1` if the page can never be set as landing page, otherwise `0` - * @property-read int $enableShareButtons is `1` if the page should display share buttons, otherwise `0` + * @property-read int $pageID unique id of the page + * @property-read ?int $parentPageID id of the page's parent page or `null` if it has no parent page + * @property-read string $identifier unique textual identifier of the page + * @property-read string $name monolingual name of the page shown in the ACP + * @property-read string $pageType type of the page, default types: `text`, `html`, `tpl` `system` + * @property-read 0|1 $isDisabled is `1` if the page is disabled and thus cannot be accessed, otherwise `0` + * @property-read 0|1 $isMultilingual is `1` if the page is available in different languages, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the page has been delivered by a package, otherwise `0` (i.e. the page has been created in the ACP) + * @property-read int $packageID id of the package the which delivers the page or `1` if it has been created in the ACP + * @property-read ?int $applicationPackageID id of the package of the application the pages belongs to + * @property-read ?int $overrideApplicationPackageID id of the package of the application that the page virtually belongs to + * @property-read string $controller name of the page controller class + * @property-read string $handler name of the page handler class for `system` pages or empty + * @property-read string $controllerCustomURL custom url of the page + * @property-read 0|1 $requireObjectID is `1` if the page requires an object id parameter, otherwise `0` + * @property-read 0|1 $hasFixedParent is `1` if the page's parent page cannot be changed, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the page has been updated the last time + * @property-read string $cssClassName css class name(s) of the page + * @property-read 0|1 $availableDuringOfflineMode is `1` if the page is available during offline mode, otherwise `0` + * @property-read 0|1 $allowSpidersToIndex is `1` if the page is accessible for search spiders, otherwise `0` + * @property-read 0|1 $excludeFromLandingPage is `1` if the page can never be set as landing page, otherwise `0` + * @property-read 0|1 $enableShareButtons is `1` if the page should display share buttons, otherwise `0` * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to access the page - * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the page to be accessible - * @property-read int $invertPermissions is `1` if the permissions are inverted + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the page to be accessible + * @property-read 0|1 $invertPermissions is `1` if the permissions are inverted, otherwise `0` */ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { diff --git a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php index b6c8db16272..54ce364600c 100644 --- a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php +++ b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php @@ -18,14 +18,14 @@ * @license GNU Lesser General Public License * @since 3.0 * - * @property-read int $pageContentID unique id of the page content - * @property-read int $pageID id of the page the page content belongs to - * @property-read int $languageID id of the page content's language - * @property-read string $title title of the page in the associated language - * @property-read string $content actual content of the page in the associated language - * @property-read string $metaDescription meta description of the page in the associated language - * @property-read string $customURL custom url of the page in the associated language - * @property-read int $hasEmbeddedObjects is `1` if the page content contains embedded objects, otherwise `0` + * @property-read int $pageContentID unique id of the page content + * @property-read int $pageID id of the page the page content belongs to + * @property-read ?int $languageID id of the page content's language + * @property-read string $title title of the page in the associated language + * @property-read ?string $content actual content of the page in the associated language + * @property-read ?string $metaDescription meta description of the page in the associated language + * @property-read string $customURL custom url of the page in the associated language + * @property-read 0|1 $hasEmbeddedObjects is `1` if the page content contains embedded objects, otherwise `0` */ class PageContent extends DatabaseObject implements ITitledLinkObject { diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php index 6b1ed9aeac9..290c29c7659 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php @@ -18,18 +18,18 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $subscriptionID unique id of the paid subscription - * @property-read string $title title of the paid subscription or name of language item which contains the title - * @property-read string $description description of the paid subscription or name of language item which contains the description - * @property-read int $isDisabled is `1` if the paid subscription is disabled and thus cannot be bought, otherwise `0` - * @property-read int $showOrder position of the paid subscription in relation to the other paid subscriptions - * @property-read double $cost cost of the paid subscription - * @property-read string $currency identifier for the currency of the paid subscription cost - * @property-read int $subscriptionLength magnitude part of the duration of the subscription or `0` if the subscription is permanent - * @property-read string $subscriptionLengthUnit unit part of the duration of the subscription (`D` for days, `M` for months, `Y` for years) or empty if the subscription is permanent - * @property-read int $isRecurring is `1` if the paid subscription is recurring and thus requires regular (automatic) payments, otherwise `0` - * @property-read string $groupIDs comma-separated list with the ids of the user groups for which the subscription pays membership - * @property-read string $excludedSubscriptionIDs comma-separated list with the ids of paid subscriptions which prohibit purchase of this paid subscription + * @property-read int $subscriptionID unique id of the paid subscription + * @property-read string $title title of the paid subscription or name of language item which contains the title + * @property-read ?string $description description of the paid subscription or name of language item which contains the description + * @property-read 0|1 $isDisabled is `1` if the paid subscription is disabled and thus cannot be bought, otherwise `0` + * @property-read int $showOrder position of the paid subscription in relation to the other paid subscriptions + * @property-read double $cost cost of the paid subscription + * @property-read string $currency identifier for the currency of the paid subscription cost + * @property-read int $subscriptionLength magnitude part of the duration of the subscription or `0` if the subscription is permanent + * @property-read string $subscriptionLengthUnit unit part of the duration of the subscription (`D` for days, `M` for months, `Y` for years) or empty if the subscription is permanent + * @property-read 0|1 $isRecurring is `1` if the paid subscription is recurring and thus requires regular (automatic) payments, otherwise `0` + * @property-read ?string $groupIDs comma-separated list with the ids of the user groups for which the subscription pays membership + * @property-read ?string $excludedSubscriptionIDs comma-separated list with the ids of paid subscriptions which prohibit purchase of this paid subscription */ class PaidSubscription extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php index 4037af5cd72..c87322ede79 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php @@ -15,15 +15,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $logID unique id of the paid subscription transaction log entry - * @property-read int|null $subscriptionUserID id of the paid subscription-user-association or `null` if no such association exists - * @property-read int|null $userID id of the user who caused the paid subscription transaction log entry or `null` if the user does not exist anymore - * @property-read int $subscriptionID id of the paid subscription - * @property-read int $paymentMethodObjectTypeID id of the `com.woltlab.wcf.payment.method` object type - * @property-read int $logTime timestamp at which the log has been created - * @property-read string $transactionID identifier of the paid subscription transaction - * @property-read string $transactionDetails serialized details of the paid subscription transaction - * @property-read string $logMessage log message describing the status of the paid subscription transaction + * @property-read int $logID unique id of the paid subscription transaction log entry + * @property-read ?int $subscriptionUserID id of the paid subscription-user-association or `null` if no such association exists + * @property-read ?int $userID id of the user who caused the paid subscription transaction log entry or `null` if the user does not exist anymore + * @property-read ?int $subscriptionID id of the paid subscription + * @property-read int $paymentMethodObjectTypeID id of the `com.woltlab.wcf.payment.method` object type + * @property-read int $logTime timestamp at which the log has been created + * @property-read string $transactionID identifier of the paid subscription transaction + * @property-read ?string $transactionDetails serialized details of the paid subscription transaction + * @property-read string $logMessage log message describing the status of the paid subscription transaction */ class PaidSubscriptionTransactionLog extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php index 605844ab49a..b9afe0152f6 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php @@ -14,13 +14,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $subscriptionUserID unique id of the paid subscription-user-association - * @property-read int $subscriptionID id of the paid subscription the paid subscription-user-association belongs to - * @property-read int $userID id of the user the paid subscription-user-association belongs to - * @property-read int $startDate timestamp at which the paid subscription started - * @property-read int $endDate timestamp at which the paid subscription ended or will end - * @property-read int $isActive is `1` if the user's paid subscription is currently active and thus not expired, otherwise `0` - * @property-read int $sentExpirationNotification is `1` if the user has been notified that the paid subscription is expiring + * @property-read int $subscriptionUserID unique id of the paid subscription-user-association + * @property-read int $subscriptionID id of the paid subscription the paid subscription-user-association belongs to + * @property-read int $userID id of the user the paid subscription-user-association belongs to + * @property-read int $startDate timestamp at which the paid subscription started + * @property-read int $endDate timestamp at which the paid subscription ended or will end + * @property-read 0|1 $isActive is `1` if the user's paid subscription is currently active and thus not expired, otherwise `0` + * @property-read 0|1 $sentExpirationNotification is `1` if the user has been notified that the paid subscription is expiring, otherwise `0` */ class PaidSubscriptionUser extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index 975522dc27d..6008404263d 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -15,18 +15,18 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $pollID unique id of the poll - * @property-read int $objectTypeID id of the `com.woltlab.wcf.poll` object type - * @property-read int $objectID id of the poll container object the poll belongs to - * @property-read string $question question of the poll - * @property-read int $time timestamp at which the poll has been created - * @property-read int $endTime timestamp at which the poll has been/will be closed - * @property-read int $isChangeable is `1` if participants can change their vote, otherwise `0` - * @property-read int $isPublic is `1` if the result of the poll is public, otherwise `0` - * @property-read int $sortByVotes is `1` if the results will be sorted by votes, otherwise `0` - * @property-read int $resultsRequireVote is `1` if a user has to have voted to see the results, otherwise `0` - * @property-read int $maxVotes maximum number of options the user can select - * @property-read int $votes number of votes in the poll + * @property-read int $pollID unique id of the poll + * @property-read int $objectTypeID id of the `com.woltlab.wcf.poll` object type + * @property-read int $objectID id of the poll container object the poll belongs to + * @property-read ?string $question question of the poll + * @property-read int $time timestamp at which the poll has been created + * @property-read int $endTime timestamp at which the poll has been/will be closed + * @property-read 0|1 $isChangeable is `1` if participants can change their vote, otherwise `0` + * @property-read 0|1 $isPublic is `1` if the result of the poll is public, otherwise `0` + * @property-read 0|1 $sortByVotes is `1` if the results will be sorted by votes, otherwise `0` + * @property-read 0|1 $resultsRequireVote is `1` if a user has to have voted to see the results, otherwise `0` + * @property-read int $maxVotes maximum number of options the user can select + * @property-read int $votes number of votes in the poll */ class Poll extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php index 0a8c27aae9d..41d1b5bf3a1 100644 --- a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php +++ b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php @@ -12,11 +12,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $optionID unique id of the poll option - * @property-read int $pollID id of the poll the option belongs to - * @property-read string $optionValue text of the poll option - * @property-read int $votes number of votes for the poll option - * @property-read int $showOrder position of the poll option in relation to the other options of the poll + * @property-read int $optionID unique id of the poll option + * @property-read int $pollID id of the poll the option belongs to + * @property-read string $optionValue text of the poll option + * @property-read int $votes number of votes for the poll option + * @property-read int $showOrder position of the poll option in relation to the other options of the poll */ class PollOption extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php index c851a5defbe..dbacd4dc19a 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php @@ -14,11 +14,11 @@ * @license GNU Lesser General Public License * @since 5.2 * - * @property-read int $reactionTypeID unique id of the reaction type - * @property-read string $title - * @property-read int $showOrder position of the reaction type in relation to the other reaction types - * @property-read string $iconFile the file location of the icon - * @property-read bool $isAssignable `1`, if the reaction can be assigned + * @property-read int $reactionTypeID unique id of the reaction type + * @property-read string $title + * @property-read int $showOrder position of the reaction type in relation to the other reaction types + * @property-read string $iconFile the file location of the icon + * @property-read 0|1 $isAssignable `1`, if the reaction can be assigned, otherwise `0` */ class ReactionType extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/search/Search.class.php b/wcfsetup/install/files/lib/data/search/Search.class.php index e319f691695..45bcaf8fc4f 100644 --- a/wcfsetup/install/files/lib/data/search/Search.class.php +++ b/wcfsetup/install/files/lib/data/search/Search.class.php @@ -11,13 +11,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $searchID unique id of the search - * @property-read int|null $userID id of the user who has done the search or `null` if a guest has done the search - * @property-read string $searchData serialized array with data and parameters of the seatch - * @property-read int $searchTime timestamp of the search - * @property-read string $searchType type of search, like `messages` or `users` - * @property-read string $searchHash hash identifying the search for the user to reuse the result within the first 30 minutes + * @property-read int $searchID unique id of the search + * @property-read ?int $userID id of the user who has done the search or `null` if a guest has done the search + * @property-read string $searchData serialized array with data and parameters of the seatch + * @property-read int $searchTime timestamp of the search + * @property-read string $searchType type of search, like `messages` or `users` + * @property-read string $searchHash hash identifying the search for the user to reuse the result within the first 30 minutes */ -class Search extends DatabaseObject -{ -} +class Search extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php b/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php index 8345cf4fcb2..fa441923adc 100644 --- a/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php +++ b/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php @@ -11,11 +11,9 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $keywordID unique id of the search keyword - * @property-read string $keyword search keyword - * @property-read int $searches times the keyword has been searched - * @property-read int $lastSearchTime last time the keyword has been searched + * @property-read int $keywordID unique id of the search keyword + * @property-read string $keyword search keyword + * @property-read int $searches times the keyword has been searched + * @property-read int $lastSearchTime last time the keyword has been searched */ -class SearchKeyword extends DatabaseObject -{ -} +class SearchKeyword extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/service/worker/ServiceWorker.class.php b/wcfsetup/install/files/lib/data/service/worker/ServiceWorker.class.php index dbb9cf52c93..3dd916fc48f 100644 --- a/wcfsetup/install/files/lib/data/service/worker/ServiceWorker.class.php +++ b/wcfsetup/install/files/lib/data/service/worker/ServiceWorker.class.php @@ -11,12 +11,12 @@ * @license GNU Lesser General Public License * @since 6.1 * - * @property-read int $workerID - * @property-read int $userID - * @property-read string $endpoint - * @property-read string $publicKey - * @property-read string $authToken - * @property-read string $contentEncoding + * @property-read int $workerID + * @property-read int $userID + * @property-read string $endpoint + * @property-read string $publicKey + * @property-read string $authToken + * @property-read string $contentEncoding */ class ServiceWorker extends DatabaseObject implements SubscriptionInterface { diff --git a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php index f2eebb2342f..b38022563c0 100644 --- a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php +++ b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php @@ -14,15 +14,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $smileyID unique id of the smiley - * @property-read int $packageID id of the package which delivers the smiley - * @property-read int|null $categoryID id of the category the smiley belongs to or `null` if it belongs to the default category - * @property-read string $smileyPath path to the smiley file relative to wcf's default path - * @property-read string $smileyPath2x path to the smiley file relative to wcf's default path (2x version) - * @property-read string $smileyTitle title of the smiley or name of language item that contains the title - * @property-read string $smileyCode code used for displaying the smiley - * @property-read string $aliases alternative codes used for displaying the smiley - * @property-read int $showOrder position of the smiley in relation to the other smileys in the same category + * @property-read int $smileyID unique id of the smiley + * @property-read int $packageID id of the package which delivers the smiley + * @property-read ?int $categoryID id of the category the smiley belongs to or `null` if it belongs to the default category + * @property-read string $smileyPath path to the smiley file relative to wcf's default path + * @property-read string $smileyPath2x path to the smiley file relative to wcf's default path (2x version) + * @property-read string $smileyTitle title of the smiley or name of language item that contains the title + * @property-read string $smileyCode code used for displaying the smiley + * @property-read string $aliases alternative codes used for displaying the smiley + * @property-read int $showOrder position of the smiley in relation to the other smileys in the same category */ class Smiley extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php b/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php index a0bddb4ffce..5d94e4ea267 100644 --- a/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php +++ b/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php @@ -11,12 +11,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $statID unique id of the daily statistic entry - * @property-read int $objectTypeID id of the `com.woltlab.wcf.statDailyHandler` object type - * @property-read string $date date when the daily statistic entry has been created - * @property-read int $counter daily statistic entry count for the last day - * @property-read int $total cumulative daily statistic entry count up to the date + * @property-read int $statID unique id of the daily statistic entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.statDailyHandler` object type + * @property-read string $date date when the daily statistic entry has been created + * @property-read int $counter daily statistic entry count for the last day + * @property-read int $total cumulative daily statistic entry count up to the date */ -class StatDaily extends DatabaseObject -{ -} +class StatDaily extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index ee886f9984e..f9a444c0eda 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -16,27 +16,27 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $styleID unique id of the style - * @property-read int $packageID id of the package which delivers the style - * @property-read string $styleName name of style - * @property-read int $templateGroupID id of the template group used for the style or `0` if the style uses no specific template group - * @property-read int $isDefault is `1` if the style is the default style for guests and users, otherwise `0` - * @property-read int $isDisabled is `1` if the style is disabled and thus cannot be used without having the specific permission to do so, otherwise `0` - * @property-read string $styleDescription description of the style or name of the language item which contains the description - * @property-read string $styleVersion version number of the style - * @property-read string $styleDate date when the used version of the style has been published - * @property-read string $image link or path (relative to `WCF_DIR`) to the preview image of the style - * @property-read string $image2x link or path (relative to `WCF_DIR`) to the preview image of the style (2x version) - * @property-read string $copyright copyright text of the style - * @property-read string $license name of the style's license - * @property-read string $authorName name(s) of the style's author(s) - * @property-read string $authorURL link to the author's website - * @property-read string $imagePath path (relative to `WCF_DIR`) to the images used by the style or empty if style has no special image path - * @property-read string $packageName package identifier used to export the style as a package or empty (thus style cannot be exported as package) - * @property-read int $isTainted is `0` if the original declarations of an imported or installed style are not and cannot be altered, otherwise `1` - * @property-read int $hasFavicon is `0` if the default favicon data should be used - * @property-read string $coverPhotoExtension extension of the style's cover photo file - * @property-read int $hasDarkMode + * @property-read int $styleID unique id of the style + * @property-read int $packageID id of the package which delivers the style + * @property-read string $styleName name of style + * @property-read int $templateGroupID id of the template group used for the style or `0` if the style uses no specific template group + * @property-read 0|1 $isDefault is `1` if the style is the default style for guests and users, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the style is disabled and thus cannot be used without having the specific permission to do so, otherwise `0` + * @property-read string $styleDescription description of the style or name of the language item which contains the description + * @property-read string $styleVersion version number of the style + * @property-read string $styleDate date when the used version of the style has been published + * @property-read string $image link or path (relative to `WCF_DIR`) to the preview image of the style + * @property-read string $image2x link or path (relative to `WCF_DIR`) to the preview image of the style (2x version) + * @property-read string $copyright copyright text of the style + * @property-read string $license name of the style's license + * @property-read string $authorName name(s) of the style's author(s) + * @property-read string $authorURL link to the author's website + * @property-read string $imagePath path (relative to `WCF_DIR`) to the images used by the style or empty if style has no special image path + * @property-read string $packageName package identifier used to export the style as a package or empty (thus style cannot be exported as package) + * @property-read 0|1 $isTainted is `0` if the original declarations of an imported or installed style are not and cannot be altered, otherwise `1` + * @property-read 0|1 $hasFavicon is `0` if the default favicon data should be used + * @property-read string $coverPhotoExtension extension of the style's cover photo file + * @property-read 0|1 $hasDarkMode */ class Style extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php b/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php index a38b3cf9314..3c9a1be4095 100644 --- a/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php +++ b/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php @@ -11,10 +11,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $variableID unique id of the style variable - * @property-read string $variableName name of the style variable - * @property-read string $defaultValue default value of the style variable - * @property-read string $defaultValueDarkMode + * @property-read int $variableID unique id of the style variable + * @property-read string $variableName name of the style variable + * @property-read ?string $defaultValue default value of the style variable + * @property-read ?string $defaultValueDarkMode */ class StyleVariable extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/tag/Tag.class.php b/wcfsetup/install/files/lib/data/tag/Tag.class.php index ec11fbd235b..4efdd5df232 100644 --- a/wcfsetup/install/files/lib/data/tag/Tag.class.php +++ b/wcfsetup/install/files/lib/data/tag/Tag.class.php @@ -14,10 +14,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $tagID unique id of the tag - * @property-read int $languageID id of the language the tag belongs to - * @property-read string $name name/text of the tag - * @property-read int|null $synonymFor id of the tag for which the tag is a synonym or `null` if the tag is no synonym + * @property-read int $tagID unique id of the tag + * @property-read int $languageID id of the language the tag belongs to + * @property-read string $name name/text of the tag + * @property-read ?int $synonymFor id of the tag for which the tag is a synonym or `null` if the tag is no synonym */ class Tag extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/template/Template.class.php b/wcfsetup/install/files/lib/data/template/Template.class.php index 7516f8f475e..b44b470f9b9 100644 --- a/wcfsetup/install/files/lib/data/template/Template.class.php +++ b/wcfsetup/install/files/lib/data/template/Template.class.php @@ -14,13 +14,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $templateID unique id of the template - * @property-read int $packageID id of the package which delivers the template - * @property-read string $templateName name of the template - * @property-read string $application abbreviation of the application to which the template belongs - * @property-read int|null $templateGroupID id of the template group to which the template belongs or `null` if the template belongs to no template group - * @property-read int $lastModificationTime timestamp at which the template has been edited the last time - * @property-read string $templateGroupFolderName + * @property-read int $templateID unique id of the template + * @property-read int $packageID id of the package which delivers the template + * @property-read string $templateName name of the template + * @property-read string $application abbreviation of the application to which the template belongs + * @property-read ?int $templateGroupID id of the template group to which the template belongs or `null` if the template belongs to no template group + * @property-read int $lastModificationTime timestamp at which the template has been edited the last time + * @property-read string $templateGroupFolderName */ class Template extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php index 4d28aae2cba..4e460b9be6b 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php @@ -14,10 +14,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $templateGroupID unique id of the template group - * @property-read int|null $parentTemplateGroupID id of the template group's parent template group or `null` if the template group has no parent template group - * @property-read string $templateGroupName name of the template group - * @property-read string $templateGroupFolderName name of the folder containing the modified templates (relative to the normal template folder) + * @property-read int $templateGroupID unique id of the template group + * @property-read ?int $parentTemplateGroupID id of the template group's parent template group or `null` if the template group has no parent template group + * @property-read string $templateGroupName name of the template group + * @property-read string $templateGroupFolderName name of the folder containing the modified templates (relative to the normal template folder) */ class TemplateGroup extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php b/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php index 9169e2920d4..e7c408a6fee 100644 --- a/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php +++ b/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php @@ -11,17 +11,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $listenerID unique id of the template listener - * @property-read int $packageID id of the package which delivers the template listener - * @property-read string $name name of the template listener - * @property-read string $environment environment in which the template listener is executed, possible values: 'user' or 'admin' - * @property-read string $templateName name of the template in which the listened event is fired - * @property-read string $eventName name of the listened event - * @property-read string $templateCode included template code at the position of the listened event - * @property-read int $niceValue value from [-128, 127] used to determine template listener execution order (template listeners with smaller `$niceValue` are executed first) - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the template listener to be executed - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the template listener to be executed + * @property-read int $listenerID unique id of the template listener + * @property-read int $packageID id of the package which delivers the template listener + * @property-read string $name name of the template listener + * @property-read string $environment environment in which the template listener is executed, possible values: 'user' or 'admin' + * @property-read string $templateName name of the template in which the listened event is fired + * @property-read string $eventName name of the listened event + * @property-read string $templateCode included template code at the position of the listened event + * @property-read int $niceValue value from [-128, 127] used to determine template listener execution order (template listeners with smaller `$niceValue` are executed first) + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the template listener to be executed + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the template listener to be executed */ -class TemplateListener extends DatabaseObject -{ -} +class TemplateListener extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php index 0ac0c2ec3e0..48c7d54260c 100644 --- a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php +++ b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php @@ -23,20 +23,20 @@ * @license GNU Lesser General Public License * @since 3.1 * - * @property-read int $trophyID unique id for the trophy - * @property-read string $title the trophy title - * @property-read string $description the trophy description - * @property-read int $categoryID the categoryID of the trophy - * @property-read int $type the trophy type - * @property-read string $iconFile the file location of the icon - * @property-read string $iconName the icon name - * @property-read string $iconColor the icon color - * @property-read string $badgeColor the icon badge color - * @property-read int $isDisabled `1` if the trophy is disabled - * @property-read int $awardAutomatically `1` if the trophy is awarded automatically - * @property-read int $revokeAutomatically `1` if the trophy should be automatically revoked once the conditions are no longer met. - * @property-read int $trophyUseHtml `1` if the trophy use a html description - * @property-read int $showOrder position of the trophy in relation to the other trophies at the same location + * @property-read int $trophyID unique id for the trophy + * @property-read ?string $title + * @property-read ?string $description + * @property-read int $categoryID + * @property-read ?int $type + * @property-read ?string $iconFile + * @property-read ?string $iconName + * @property-read ?string $iconColor + * @property-read ?string $badgeColor + * @property-read 0|1 $isDisabled `1` if the trophy is disabled, otherwise `0` + * @property-read 0|1 $awardAutomatically `1` if the trophy is awarded automatically, otherwise `0` + * @property-read 0|1 $revokeAutomatically `1` if the trophy should be automatically revoked once the conditions are no longer met, otherwise `0` + * @property-read 0|1 $trophyUseHtml `1` if the trophy use a html description, otherwise `0` + * @property-read int $showOrder position of the trophy in relation to the other trophies at the same location */ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteController { diff --git a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php index ec00831cc83..9dde307239a 100644 --- a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php +++ b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php @@ -18,22 +18,22 @@ * @license GNU Lesser General Public License * @since 5.4 * - * @property-read int $urlID - * @property-read string $url - * @property-read string $urlHash - * @property-read string $title - * @property-read ?string $description - * @property-read string $imageHash - * @property-read string $imageUrl - * @property-read ?string $imageUrlHash - * @property-read ?string $imageExtension - * @property-read int $width - * @property-read int $height - * @property-read int $lastFetch - * @property-read ?int $imageID - * @property-read int $isStored - * @property-read string $status - * @property-read ?int $fileID + * @property-read int $urlID + * @property-read string $url + * @property-read string $urlHash + * @property-read string $title + * @property-read ?string $description + * @property-read string $imageHash + * @property-read string $imageUrl + * @property-read ?string $imageUrlHash + * @property-read ?string $imageExtension + * @property-read int $width + * @property-read int $height + * @property-read int $lastFetch + * @property-read ?int $imageID + * @property-read int $isStored + * @property-read string $status + * @property-read ?int $fileID */ class UnfurlUrl extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index fca14c0480a..0ef3c379d2f 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -25,56 +25,56 @@ * @copyright 2001-2020 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $userID unique id of the user - * @property-read string $username name of the user - * @property-read string $email email address of the user - * @property-read string $password double salted hash of the user's password - * @property-read string $accessToken token used for access authentication, for example used by feed pages - * @property-read int $languageID id of the interface language used by the user - * @property-read int $registrationDate timestamp at which the user has registered/has been created - * @property-read int $styleID id of the style used by the user - * @property-read int $banned is `1` if the user is banned, otherwise `0` - * @property-read string $banReason reason why the user is banned - * @property-read ?int $banExpires timestamp at which the banned user is automatically unbanned - * @property-read int $activationCode flag which determines, whether the user is activated (for legacy reasons an random integer, if the user is *not* activated) + * @property-read int $userID unique id of the user + * @property-read string $username name of the user + * @property-read string $email email address of the user + * @property-read string $password double salted hash of the user's password + * @property-read string $accessToken token used for access authentication, for example used by feed pages + * @property-read int $languageID id of the interface language used by the user + * @property-read int $registrationDate timestamp at which the user has registered/has been created + * @property-read int $styleID id of the style used by the user + * @property-read 0|1 $banned is `1` if the user is banned, otherwise `0` + * @property-read ?string $banReason reason why the user is banned + * @property-read int $banExpires timestamp at which the banned user is automatically unbanned + * @property-read int $activationCode flag which determines, whether the user is activated (for legacy reasons an random integer, if the user is *not* activated) * @property-read ?string $emailConfirmed code sent to the user's email address used for account activation or null if the email is confirmed - * @property-read int $lastLostPasswordRequestTime timestamp at which the user has reported that they lost their password or 0 if password has not been reported as lost + * @property-read int $lastLostPasswordRequestTime timestamp at which the user has reported that they lost their password or 0 if password has not been reported as lost * @property-read ?string $lostPasswordKey code used for authenticating setting new password after password loss or empty if password has not been reported as lost - * @property-read int $lastUsernameChange timestamp at which the user changed their name the last time or 0 if username has not been changed - * @property-read string $newEmail new email address of the user that has to be manually confirmed or empty if no new email address has been set - * @property-read string $oldUsername previous name of the user or empty if they have had no previous name - * @property-read int $quitStarted timestamp at which the user terminated their account - * @property-read int $reactivationCode code used for authenticating setting new email address or empty if no new email address has been set - * @property-read string $registrationIpAddress ip address of the user at the time of registration or empty if user has been created manually or if no ip address are logged - * @property-read ?int $avatarID id of the user's avatar or null if they have no avatar - * @property-read ?int $avatarFileID id of the user's avatar core file or null if they have no avatar - * @property-read ?string $avatarPathname pathname of the user's avatar relative to the core itself - * @property-read int $disableAvatar is `1` if the user's avatar has been disabled, otherwise `0` - * @property-read ?string $disableAvatarReason reason why the user's avatar is disabled - * @property-read int $disableAvatarExpires timestamp at which the user's avatar will automatically be enabled again - * @property-read ?string $signature text of the user's signature - * @property-read int $signatureEnableHtml is `1` if HTML will rendered in the user's signature, otherwise `0` - * @property-read int $disableSignature is `1` if the user's signature has been disabled, otherwise `0` - * @property-read ?string $disableSignatureReason reason why the user's signature is disabled - * @property-read int $disableSignatureExpires timestamp at which the user's signature will automatically be enabled again - * @property-read int $lastActivityTime timestamp of the user's last activity - * @property-read ?int $rankID id of the user's rank or null if they have no rank - * @property-read string $userTitle custom user title used instead of rank title or empty if user has no custom title - * @property-read ?int $userOnlineGroupID id of the user group whose online marking is used when printing the user's formatted name or null if no special marking is used - * @property-read int $activityPoints total number of the user's activity points - * @property-read string $notificationMailToken token used for authenticating requests by the user to disable notification emails - * @property-read string $authData data of the third party used for authentication - * @property-read int $likesReceived cumulative result of likes (counting +1) the user's contents have received - * @property-read ?int $coverPhotoFileID + * @property-read int $lastUsernameChange timestamp at which the user changed their name the last time or 0 if username has not been changed + * @property-read string $newEmail new email address of the user that has to be manually confirmed or empty if no new email address has been set + * @property-read string $oldUsername previous name of the user or empty if they have had no previous name + * @property-read int $quitStarted timestamp at which the user terminated their account + * @property-read int $reactivationCode code used for authenticating setting new email address or empty if no new email address has been set + * @property-read string $registrationIpAddress ip address of the user at the time of registration or empty if user has been created manually or if no ip address are logged + * @property-read ?int $avatarID id of the user's avatar or null if they have no avatar + * @property-read ?int $avatarFileID id of the user's avatar core file or null if they have no avatar + * @property-read ?string $avatarPathname pathname of the user's avatar relative to the core itself + * @property-read 0|1 $disableAvatar is `1` if the user's avatar has been disabled, otherwise `0` + * @property-read ?string $disableAvatarReason reason why the user's avatar is disabled + * @property-read int $disableAvatarExpires timestamp at which the user's avatar will automatically be enabled again + * @property-read ?string $signature text of the user's signature + * @property-read 0|1 $signatureEnableHtml is `1` if HTML will rendered in the user's signature, otherwise `0` + * @property-read 0|1 $disableSignature is `1` if the user's signature has been disabled, otherwise `0` + * @property-read ?string $disableSignatureReason reason why the user's signature is disabled + * @property-read int $disableSignatureExpires timestamp at which the user's signature will automatically be enabled again + * @property-read int $lastActivityTime timestamp of the user's last activity + * @property-read ?int $rankID id of the user's rank or null if they have no rank + * @property-read string $userTitle custom user title used instead of rank title or empty if user has no custom title + * @property-read ?int $userOnlineGroupID id of the user group whose online marking is used when printing the user's formatted name or null if no special marking is used + * @property-read int $activityPoints total number of the user's activity points + * @property-read string $notificationMailToken token used for authenticating requests by the user to disable notification emails + * @property-read string $authData data of the third party used for authentication + * @property-read int $likesReceived cumulative result of likes (counting +1) the user's contents have received + * @property-read ?int $coverPhotoFileID * @property-read ?string $coverPhotoHash - * @property-read int $disableCoverPhoto is `1` if the user's cover photo has been disabled, otherwise `0` + * @property-read 0|1 $disableCoverPhoto is `1` if the user's cover photo has been disabled, otherwise `0` * @property-read ?string $disableCoverPhotoReason reason why the user's cover photo is disabled - * @property-read int $disableCoverPhotoExpires timestamp at which the user's cover photo will automatically be enabled again - * @property-read int $articles number of articles written by the user - * @property-read string $blacklistMatches JSON string of an array with all matches in the blacklist, otherwise an empty string - * @property-read int $multifactorActive is `1` if the use has enabled a second factor, otherwise `0` - * @property-read int $trophyPoints total number of user's trophies in active categories - * @property-read string $timezone + * @property-read int $disableCoverPhotoExpires timestamp at which the user's cover photo will automatically be enabled again + * @property-read int $articles number of articles written by the user + * @property-read string $blacklistMatches JSON string of an array with all matches in the blacklist, otherwise an empty string + * @property-read 0|1 $multifactorActive is `1` if the use has enabled a second factor, otherwise `0` + * @property-read int $trophyPoints total number of user's trophies in active categories + * @property-read string $timezone */ final class User extends DatabaseObject implements IPopoverObject, IRouteController, IUserContent { diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php index 268e1f68355..813600a618a 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php @@ -11,12 +11,12 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $eventID unique id of the user activity event - * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.recentActivityEvent` object type - * @property-read int $objectID id of the object the user activity event belongs to - * @property-read int|null $languageID id of the language of the related object or null if the object has no specific language - * @property-read int $userID id of the user who has triggered the user activity event - * @property-read int $time timestamp at which the user activity event has been triggered + * @property-read int $eventID unique id of the user activity event + * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.recentActivityEvent` object type + * @property-read int $objectID id of the object the user activity event belongs to + * @property-read ?int $languageID id of the language of the related object or null if the object has no specific language + * @property-read int $userID id of the user who has triggered the user activity event + * @property-read int $time timestamp at which the user activity event has been triggered * @property-read mixed[] $additionalData array with additional data of the user activity event */ class UserActivityEvent extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php index f682ce3f8d2..1ca181a8f1b 100644 --- a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php +++ b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php @@ -13,14 +13,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $failureID unique if of the user authentication failure - * @property-read string $environment environment in which the user authentication failure occurred, possible values: 'user' or 'admin' - * @property-read int|null $userID id of the user using an incorrect password or null if the provided username or email address is not associated with any registered user - * @property-read string $username user name or email address used to login - * @property-read int $time timestamp at which the user authentication failure has occurred - * @property-read string $ipAddress ip address of the user trying to login in - * @property-read string $userAgent user agent of the user trying to login in - * @property-read string $validationError + * @property-read int $failureID unique if of the user authentication failure + * @property-read string $environment environment in which the user authentication failure occurred, possible values: 'user' or 'admin' + * @property-read ?int $userID id of the user using an incorrect password or null if the provided username or email address is not associated with any registered user + * @property-read string $username user name or email address used to login + * @property-read int $time timestamp at which the user authentication failure has occurred + * @property-read string $ipAddress ip address of the user trying to login in + * @property-read string $userAgent user agent of the user trying to login in + * @property-read string $validationError */ class UserAuthenticationFailure extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index a7661557db7..6b3fe7d911e 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -14,14 +14,14 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $avatarID unique id of the user avatar - * @property-read string $avatarName name of the original avatar file - * @property-read string $avatarExtension extension of the avatar file - * @property-read int $width width of the user avatar image - * @property-read int $height height of the user avatar image - * @property-read int|null $userID id of the user to which the user avatar belongs or null - * @property-read string $fileHash SHA1 hash of the original avatar file - * @property-read int $hasWebP `1` if there is a WebP variant, else `0` + * @property-read int $avatarID unique id of the user avatar + * @property-read string $avatarName name of the original avatar file + * @property-read string $avatarExtension extension of the avatar file + * @property-read int $width width of the user avatar image + * @property-read int $height height of the user avatar image + * @property-read ?int $userID id of the user to which the user avatar belongs or null + * @property-read string $fileHash SHA1 hash of the original avatar file + * @property-read 0|1 $hasWebP `1` if there is a WebP variant, else `0` * * @deprecated 6.2 */ diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php index ba5c08e6e93..43a855ca5c4 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php @@ -12,10 +12,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $followID unique id of the following relation - * @property-read int $userID id of the following user - * @property-read int $followUserID id of the followed user - * @property-read int $time time at which following relation has been established + * @property-read int $followID unique id of the following relation + * @property-read int $userID id of the following user + * @property-read int $followUserID id of the followed user + * @property-read int $time time at which following relation has been established */ class UserFollow extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php index 473966bd828..74f1025af02 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -20,7 +20,7 @@ * * @property-read int $groupID unique id of the user group * @property-read string $groupName name of the user group or name of language item which contains the name - * @property-read string $groupDescription description of the user group or name of language item which contains the description + * @property-read ?string $groupDescription description of the user group or name of language item which contains the description * @property-read int $groupType identifier of the type of user group * @property-read int $priority priority of the user group used to determine member's user rank and online marking * @property-read string $userOnlineMarking HTML code used to print the formatted name of a user group member diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php index 476227afedc..2b5c8be566f 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php @@ -15,10 +15,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $assignmentID unique id of the automatic user group assignment - * @property-read int $groupID id of the user group to which users are automatically assigned - * @property-read string $title title of the automatic user group assignment - * @property-read int $isDisabled is `1` if the user group assignment is disabled and thus not checked for automatic assignments, otherwise `0` + * @property-read int $assignmentID unique id of the automatic user group assignment + * @property-read int $groupID id of the user group to which users are automatically assigned + * @property-read string $title title of the automatic user group assignment + * @property-read 0|1 $isDisabled is `1` if the user group assignment is disabled and thus not checked for automatic assignments, otherwise `0` */ class UserGroupAssignment extends DatabaseObject implements IRouteController { diff --git a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php index e6969fc4451..363e22c4308 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php @@ -11,8 +11,8 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read string $defaultValue default value of the user option - * @property-read int $usersOnly is `1` if the option only applies to user groups for registered users, otherwise `1` + * @property-read string $defaultValue default value of the user option + * @property-read 0|1 $usersOnly is `1` if the option only applies to user groups for registered users, otherwise `0` */ class UserGroupOption extends Option { diff --git a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php index 3b5d8677c85..878e5f6a758 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php @@ -13,13 +13,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $categoryID unique id of the user group options category - * @property-read int $packageID id of the package which delivers the user group options category - * @property-read string $categoryName name and textual identifier of the user group option category - * @property-read string $parentCategoryName name of the user group option category's parent category or empty if it has no parent category - * @property-read int $showOrder position of the user group options category in relation to its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user group options category - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user group options category to be shown + * @property-read int $categoryID unique id of the user group options category + * @property-read int $packageID id of the package which delivers the user group options category + * @property-read string $categoryName name and textual identifier of the user group option category + * @property-read string $parentCategoryName name of the user group option category's parent category or empty if it has no parent category + * @property-read int $showOrder position of the user group options category in relation to its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user group options category + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the user group options category to be shown */ class UserGroupOptionCategory extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php b/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php index 2c6c3402e9e..48a276973b7 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php @@ -12,11 +12,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $ignoreID unique id of the ignore relation - * @property-read int $userID id of the ignoring user - * @property-read int $ignoreUserID id of the ignored user - * @property-read int $time time at which ignore relation has been established - * @property-read int $type one of the TYPE_* class constants + * @property-read int $ignoreID unique id of the ignore relation + * @property-read int $userID id of the ignoring user + * @property-read int $ignoreUserID id of the ignored user + * @property-read int $time time at which ignore relation has been established + * @property-read int $type one of the TYPE_* class constants */ class UserIgnore extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php index 1e61f801974..ba11cbd0405 100644 --- a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php @@ -21,17 +21,17 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $menuItemID unique id of the user menu item - * @property-read int $packageID id of the package the which delivers the user menu item - * @property-read string $menuItem textual identifier of the user menu item - * @property-read string $parentMenuItem textual identifier of the menu item's parent menu item or empty if it has no parent menu item - * @property-read string $menuItemController class name of the user menu item's controller used to generate menu item link - * @property-read string $menuItemLink additional part of the user menu item link if `$menuItemController` is set or external link - * @property-read int $showOrder position of the user menu item in relation to its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user menu item - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user menu item to be shown - * @property-read string $className name of the class implementing the user menu item provider interface or empty if there is no specific user menu item provider - * @property-read string $iconClassName FontAwesome CSS class name for user menu items on the first level + * @property-read int $menuItemID unique id of the user menu item + * @property-read int $packageID id of the package the which delivers the user menu item + * @property-read string $menuItem textual identifier of the user menu item + * @property-read string $parentMenuItem textual identifier of the menu item's parent menu item or empty if it has no parent menu item + * @property-read string $menuItemController class name of the user menu item's controller used to generate menu item link + * @property-read string $menuItemLink additional part of the user menu item link if `$menuItemController` is set or external link + * @property-read int $showOrder position of the user menu item in relation to its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user menu item + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the user menu item to be shown + * @property-read string $className name of the class implementing the user menu item provider interface or empty if there is no specific user menu item provider + * @property-read string $iconClassName FontAwesome CSS class name for user menu items on the first level */ class UserMenuItem extends ProcessibleDatabaseObject implements ITitledObject, ITreeMenuItem { diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php index f80efa7d88b..92ec2483e12 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php @@ -12,19 +12,19 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $notificationID unique id of the user notification - * @property-read int $packageID deprecated - * @property-read int $eventID id of the user notification event the user notification belongs to - * @property-read int $objectID id of the object that triggered the user notification - * @property-read int $baseObjectID id of a generic base object of object that triggered the user notification or 0 if there is no such base object - * @property-read string $eventHash hash of the event the user notification represents, is used to stack notifications - * @property-read int|null $authorID id of the user that triggered the user notification or null if there is no such user or the user was a guest - * @property-read int $timesTriggered total number of times a stacked notification has been triggered by registered users and guests - * @property-read int $guestTimesTriggered number of times a stacked notification has been triggered by guests - * @property-read int $userID id of the user who receives the user notification - * @property-read int $time timestamp at which the user notification has been created - * @property-read int $mailNotified is 0 has not be notified by mail about the user notification, otherwise 1 - * @property-read int $confirmTime timestamp at which the user notification has been marked as confirmed/read + * @property-read int $notificationID unique id of the user notification + * @property-read int $packageID deprecated + * @property-read int $eventID id of the user notification event the user notification belongs to + * @property-read int $objectID id of the object that triggered the user notification + * @property-read int $baseObjectID id of a generic base object of object that triggered the user notification or 0 if there is no such base object + * @property-read string $eventHash hash of the event the user notification represents, is used to stack notifications + * @property-read ?int $authorID id of the user that triggered the user notification or null if there is no such user or the user was a guest + * @property-read int $timesTriggered total number of times a stacked notification has been triggered by registered users and guests + * @property-read int $guestTimesTriggered number of times a stacked notification has been triggered by guests + * @property-read int $userID id of the user who receives the user notification + * @property-read int $time timestamp at which the user notification has been created + * @property-read 0|1 $mailNotified is `1` if the user has been notified by email about the user notification, otherwise `0` + * @property-read int $confirmTime timestamp at which the user notification has been marked as confirmed/read * @property-read mixed[] $additionalData array with additional data of the user notification event */ class UserNotification extends DatabaseObject diff --git a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php index bba20e10585..a8b97326ab6 100644 --- a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php @@ -16,15 +16,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $eventID unique id of the user notification event - * @property-read int $packageID id of the package which delivers the user notification event - * @property-read string $eventName name and textual identifier (within the object type) of the user notification event - * @property-read int $objectTypeID id of the `com.woltlab.wcf.notification.objectType` object type - * @property-read string $className name of the PHP class implementing `wcf\system\user\notification\event\IUserNotificationEvent` - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user notification event setting - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user notification event setting to be shown - * @property-read int $preset is `1` if the user notification event is enabled by default otherwise `0` - * @property-read string $presetMailNotificationType default mail notification type if the user notification event is enabled by default, otherwise empty + * @property-read int $eventID unique id of the user notification event + * @property-read int $packageID id of the package which delivers the user notification event + * @property-read string $eventName name and textual identifier (within the object type) of the user notification event + * @property-read int $objectTypeID id of the `com.woltlab.wcf.notification.objectType` object type + * @property-read string $className name of the PHP class implementing `wcf\system\user\notification\event\IUserNotificationEvent` + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user notification event setting + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the user notification event setting to be shown + * @property-read 0|1 $preset is `1` if the user notification event is enabled by default otherwise `0` + * @property-read string $presetMailNotificationType default mail notification type if the user notification event is enabled by default, otherwise empty */ class UserNotificationEvent extends ProcessibleDatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php index 463c4455970..6f44e147302 100644 --- a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php +++ b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php @@ -12,11 +12,11 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $watchID unique id of the watched object - * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.objectWatch` object type - * @property-read int $objectID id of the watched object of the specific object type - * @property-read int $userID id of the user watching the object - * @property-read int $notification is `1` if the user wants to receive notifications for the watched object, otherwise `0` + * @property-read int $watchID unique id of the watched object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.objectWatch` object type + * @property-read int $objectID id of the watched object of the specific object type + * @property-read int $userID id of the user watching the object + * @property-read int $notification is `1` if the user wants to receive notifications for the watched object, otherwise `0` */ class UserObjectWatch extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php index 209e12d8999..987fececb0c 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php @@ -14,16 +14,16 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read string $defaultValue default value of the user option - * @property-read int $required is `1` if the user option has to be filled out, otherwise `0` - * @property-read int $askDuringRegistration is `1` if the user option will be shown during registration to be filled out, otherwise `0` - * @property-read int $editable setting for who can edit the user option, see `UserOption::EDITABILITY_*` constants - * @property-read int $visible setting for who can see the user option, see `UserOption::VISIBILITY_*` constants - * @property-read string $outputClass name of the PHP class implementing `wcf\system\option\user\IUserOptionOutput` for outputting the user option in the user profile - * @property-read int $searchable is `1` if the user option can be searched, otherwise `0` - * @property-read int $isDisabled is `1` if the user option is disabled and thus neither shown nor editable, otherwise `0` - * @property-read int $originIsSystem is `1` if the user option was created by the system and not manually by an administrator, otherwise `0` - * @property-read string $labeledUrl the url, if the option type is `labeledUrl` + * @property-read string $defaultValue default value of the user option + * @property-read 0|1 $required is `1` if the user option has to be filled out, otherwise `0` + * @property-read 0|1 $askDuringRegistration is `1` if the user option will be shown during registration to be filled out, otherwise `0` + * @property-read int $editable setting for who can edit the user option, see `UserOption::EDITABILITY_*` constants + * @property-read int $visible setting for who can see the user option, see `UserOption::VISIBILITY_*` constants + * @property-read string $outputClass name of the PHP class implementing `wcf\system\option\user\IUserOptionOutput` for outputting the user option in the user profile + * @property-read 0|1 $searchable is `1` if the user option can be searched, otherwise `0` + * @property-read 0|1 $isDisabled is `1` if the user option is disabled and thus neither shown nor editable, otherwise `0` + * @property-read 0|1 $originIsSystem is `1` if the user option was created by the system and not manually by an administrator, otherwise `0` + * @property-read string $labeledUrl the url, if the option type is `labeledUrl` */ class UserOption extends Option implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php index 0ef3fcb1c2e..e582d79d9c3 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php @@ -13,13 +13,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $categoryID unique id of the user option category - * @property-read int $packageID id of the package which delivers the user option category - * @property-read string $categoryName name and textual identifier of the user option category - * @property-read string $parentCategoryName name of the user option category's parent category or empty if it has no parent category - * @property-read int $showOrder position of the user option category in relation to its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user option category - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user option category to be shown + * @property-read int $categoryID unique id of the user option category + * @property-read int $packageID id of the package which delivers the user option category + * @property-read string $categoryName name and textual identifier of the user option category + * @property-read string $parentCategoryName name of the user option category's parent category or empty if it has no parent category + * @property-read int $showOrder position of the user option category in relation to its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user option category + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the user option category to be shown */ class UserOptionCategory extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php index 1561b933314..f974b3ee321 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php @@ -20,13 +20,13 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $menuItemID unique id of the user profile menu item - * @property-read int $packageID id of the package which delivers the user profile menu item - * @property-read string $menuItem textual identifier of the user profile menu item - * @property-read int $showOrder position of the user profile menu item in relation to its siblings - * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user profile menu item - * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user profile menu item to be shown - * @property-read string $className name of the PHP class implementing `wcf\system\menu\user\profile\content\IUserProfileMenuContent` handling outputting the content of the user profile tab + * @property-read int $menuItemID unique id of the user profile menu item + * @property-read int $packageID id of the package which delivers the user profile menu item + * @property-read string $menuItem textual identifier of the user profile menu item + * @property-read int $showOrder position of the user profile menu item in relation to its siblings + * @property-read ?string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user profile menu item + * @property-read ?string $options comma separated list of options of which at least one needs to be enabled for the user profile menu item to be shown + * @property-read string $className name of the PHP class implementing `wcf\system\menu\user\profile\content\IUserProfileMenuContent` handling outputting the content of the user profile tab */ class UserProfileMenuItem extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php index 28d300d5df5..c872906de08 100644 --- a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php @@ -12,10 +12,10 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $visitorID unique id of the user profile visitor - * @property-read int $ownerID id of the user whose user profile has been visited - * @property-read int $userID id of the user visiting the user profile - * @property-read int $time timestamp of the (latest) visit + * @property-read int $visitorID unique id of the user profile visitor + * @property-read int $ownerID id of the user whose user profile has been visited + * @property-read int $userID id of the user visiting the user profile + * @property-read int $time timestamp of the (latest) visit */ class UserProfileVisitor extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php index e5df8635117..784ff9958ad 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php @@ -14,15 +14,15 @@ * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * - * @property-read int $rankID unique id of the user rank - * @property-read int $groupID id of the user group to which the user rank belongs - * @property-read int $requiredPoints minimum number of user activity points required for a user to get the user rank - * @property-read string $rankTitle title of the user rank or name of the language item which contains the rank - * @property-read string $cssClassName css class name used when displaying the user rank - * @property-read string $rankImage (WCF relative) path to the image displayed next to the rank or empty if no rank image exists - * @property-read int $repeatImage number of times the rank image is displayed - * @property-read int $requiredGender numeric representation of the user's gender required for the user rank (see `UserProfile::GENDER_*` constants) or 0 if no specific gender is required - * @property-read int $hideTitle hides the generic title of the rank, but not custom titles, `0` to show the title at all times + * @property-read int $rankID unique id of the user rank + * @property-read int $groupID id of the user group to which the user rank belongs + * @property-read int $requiredPoints minimum number of user activity points required for a user to get the user rank + * @property-read string $rankTitle title of the user rank or name of the language item which contains the rank + * @property-read string $cssClassName css class name used when displaying the user rank + * @property-read string $rankImage (WCF relative) path to the image displayed next to the rank or empty if no rank image exists + * @property-read int $repeatImage number of times the rank image is displayed + * @property-read int $requiredGender numeric representation of the user's gender required for the user rank (see `UserProfile::GENDER_*` constants) or 0 if no specific gender is required + * @property-read 0|1 $hideTitle hides the generic title of the rank, but not custom titles, `0` to show the title at all times */ class UserRank extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php b/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php index 57c74b7bbe7..db8e255d64a 100644 --- a/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php +++ b/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php @@ -20,13 +20,13 @@ * @license GNU Lesser General Public License * @since 3.1 * - * @property-read int $userTrophyID unique id of the user trophy - * @property-read int $trophyID trophy id - * @property-read int $userID user id - * @property-read int $time the time when the trophy was rewarded - * @property-read string $description the custom trophy description - * @property-read int $useCustomDescription `1`, if the trophy use a custom description - * @property-read int $trophyUseHtml `1`, if the trophy use a html description + * @property-read int $userTrophyID unique id of the user trophy + * @property-read int $trophyID + * @property-read int $userID + * @property-read int $time the time when the trophy was rewarded + * @property-read ?string $description the custom trophy description + * @property-read 0|1 $useCustomDescription `1`, if the trophy use a custom description + * @property-read 0|1 $trophyUseHtml `1`, if the trophy use a html description */ class UserTrophy extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php index a2933f9b5f7..fac53640ceb 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php @@ -81,11 +81,13 @@ public function getData(): array $data['values'] = "'" . \implode("','", $values) . "'"; } - if ($this instanceof AbstractIntDatabaseTableColumn) { - // Actively discard the length of *INT columns. - unset($data['length']); - } else if ($this instanceof ILengthDatabaseTableColumn) { + if ($this instanceof ILengthDatabaseTableColumn) { $data['length'] = $this->getLength(); + + if ($this instanceof AbstractIntDatabaseTableColumn) { + // Actively discard the length of *INT columns. + unset($data['length']); + } } return $data; diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/reactions/RenderUserReactions.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/reactions/RenderUserReactions.class.php index 071d6937fa2..2abbf244440 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/reactions/RenderUserReactions.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/reactions/RenderUserReactions.class.php @@ -31,7 +31,7 @@ public function __invoke(ServerRequestInterface $request, array $variables): Res throw new IllegalLinkException(); } - $user = UserProfileRuntimeCache::getInstance()->getObject($variables['id']); + $user = UserProfileRuntimeCache::getInstance()->getObject(\intval($variables['id'])); if ($user === null) { throw new IllegalLinkException(); } diff --git a/wcfsetup/install/files/lib/system/gridView/admin/ACPSessionLogGridView.class.php b/wcfsetup/install/files/lib/system/gridView/admin/ACPSessionLogGridView.class.php index 70c19002466..8bdfe83088a 100644 --- a/wcfsetup/install/files/lib/system/gridView/admin/ACPSessionLogGridView.class.php +++ b/wcfsetup/install/files/lib/system/gridView/admin/ACPSessionLogGridView.class.php @@ -91,7 +91,6 @@ protected function createObjectList(): ACPSessionLogList $list = new ACPSessionLogList(); $list->sqlSelects .= " user_table.username, - 0 AS active, ( SELECT COUNT(*) FROM wcf1_acp_session_access_log diff --git a/wcfsetup/install/files/lib/system/interaction/bulk/admin/ReactionTypeBulkInteractions.class.php b/wcfsetup/install/files/lib/system/interaction/bulk/admin/ReactionTypeBulkInteractions.class.php index a7f16112879..bb71ca47b81 100644 --- a/wcfsetup/install/files/lib/system/interaction/bulk/admin/ReactionTypeBulkInteractions.class.php +++ b/wcfsetup/install/files/lib/system/interaction/bulk/admin/ReactionTypeBulkInteractions.class.php @@ -42,7 +42,7 @@ function (ReactionType $reactionType): bool { InteractionConfirmationType::None, '', function (ReactionType $reactionType): bool { - return $reactionType->isAssignable; + return !!$reactionType->isAssignable; } ), ]); From 324c875b3a847d32bd7491771d6f33e382c4495f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 28 Feb 2026 21:16:06 +0100 Subject: [PATCH 3/5] Update composer dependencies --- composer.json | 2 +- composer.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 5b870ab11c2..b0b651dfb62 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "woltlab/wcf", "type": "project", "require-dev": { - "phpstan/phpstan": "^2.1" + "phpstan/phpstan": "^2.1.40" }, "require": {} } diff --git a/composer.lock b/composer.lock index 6ce4b347ecb..7929b6a018b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,16 +4,16 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "95a048a008dabb3a374f1181079e0512", + "content-hash": "a22a6ad10d8749f392526f443d61d356", "packages": [], "packages-dev": [ { "name": "phpstan/phpstan", - "version": "2.1.39", + "version": "2.1.40", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c6f73a2af4cbcd99c931d0fb8f08548cc0fa8224", - "reference": "c6f73a2af4cbcd99c931d0fb8f08548cc0fa8224", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", + "reference": "9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", "shasum": "" }, "require": { @@ -58,7 +58,7 @@ "type": "github" } ], - "time": "2026-02-11T14:48:56+00:00" + "time": "2026-02-23T15:04:35+00:00" } ], "aliases": [], From 749affa511f4022261dce715aeda5700576622d5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 1 Mar 2026 11:47:58 +0100 Subject: [PATCH 4/5] Remove obsolete `noinspection` tags --- wcfsetup/install.php | 11 ++--------- .../acp/form/UserGroupAssignmentEditForm.class.php | 1 - .../files/lib/action/AJAXInvokeAction.class.php | 1 - .../files/lib/action/AJAXProxyAction.class.php | 2 -- .../files/lib/action/PaypalCallbackAction.class.php | 1 - .../lib/data/AbstractDatabaseObjectAction.class.php | 1 - .../install/files/lib/data/DatabaseObject.class.php | 1 - .../files/lib/data/TMultiCategoryObject.class.php | 2 -- .../lib/data/acp/session/log/ACPSessionLog.class.php | 2 -- wcfsetup/install/files/lib/data/ad/Ad.class.php | 2 -- .../files/lib/data/article/ArticleAction.class.php | 4 ---- .../lib/data/article/CategoryArticleList.class.php | 2 -- .../install/files/lib/data/box/BoxAction.class.php | 4 ---- .../data/clipboard/item/ClipboardItemAction.class.php | 2 -- .../install/files/lib/data/like/LikeAction.class.php | 4 ---- .../files/lib/data/media/MediaAction.class.php | 8 -------- .../install/files/lib/data/page/PageAction.class.php | 4 ---- .../user/PaidSubscriptionUserAction.class.php | 1 - .../files/lib/data/template/Template.class.php | 2 -- .../activity/event/UserActivityEventAction.class.php | 1 - .../lib/data/user/follow/UserFollowingList.class.php | 2 -- .../install/files/lib/form/UserSearchForm.class.php | 1 - wcfsetup/install/files/lib/system/CLIWCF.class.php | 2 -- wcfsetup/install/files/lib/system/WCFACP.class.php | 2 -- wcfsetup/install/files/lib/system/WCFSetup.class.php | 3 --- ...oryEfficientLongestCommonSubsequenceCalculator.php | 7 ++++--- .../box/RecentActivityListBoxController.class.php | 2 -- .../builder/CategoryACLOptionCacheBuilder.class.php | 1 - .../lib/system/clipboard/ClipboardHandler.class.php | 2 -- .../AbstractMultiCategoryCondition.class.php | 1 - .../condition/AbstractTimestampCondition.class.php | 2 -- .../system/condition/DaysOfWeekCondition.class.php | 1 - .../lib/system/condition/TimeCondition.class.php | 6 ------ .../lib/system/condition/UserGroupCondition.class.php | 1 - .../condition/UserIntegerPropertyCondition.class.php | 1 - .../system/condition/UserOptionsCondition.class.php | 1 - .../condition/UserRegistrationDateCondition.class.php | 4 ---- .../UserRegistrationDateIntervalCondition.class.php | 2 -- .../lib/system/condition/UserStateCondition.class.php | 4 ---- .../system/condition/UserTrophyCondition.class.php | 1 - ...serLastActivityTimeIntervalDaysCondition.class.php | 2 -- .../cronjob/BackgroundQueueCleanUpCronjob.class.php | 1 - .../lib/system/cronjob/CronjobScheduler.class.php | 2 -- .../cronjob/DailyMailNotificationCronjob.class.php | 1 - .../database/exception/DatabaseException.class.php | 2 -- .../DatabaseQueryExecutionException.class.php | 2 -- .../DevtoolsPackageInstallationDispatcher.class.php | 1 - .../form/builder/field/tag/TagFormField.class.php | 1 - .../builder/field/wysiwyg/WysiwygFormField.class.php | 2 -- .../files/lib/system/html/toc/HtmlToc.class.php | 1 - .../files/lib/system/importer/UserImporter.class.php | 1 - .../install/files/lib/system/io/GZipFile.class.php | 2 -- .../install/files/lib/system/io/RemoteFile.class.php | 6 +----- .../install/files/lib/system/io/TarWriter.class.php | 2 -- .../system/option/CaptchaSelectOptionType.class.php | 1 - .../lib/system/option/SelectOptionType.class.php | 1 - .../package/PackageUninstallationDispatcher.class.php | 2 -- .../TDecoratedCategoryLookupPageHandler.class.php | 2 -- .../TDecoratedCategoryMenuPageHandler.class.php | 1 - ...coratedCategoryOnlineLocationPageHandler.class.php | 1 - .../acp/AbstractACPSearchResultProvider.class.php | 4 ---- .../lib/system/template/TemplateEngine.class.php | 1 - .../upload/DefaultUploadFileSaveStrategy.class.php | 2 -- .../lib/system/user/UserProfileHandler.class.php | 1 - .../notification/UserNotificationHandler.class.php | 1 - wcfsetup/install/files/lib/util/ClassUtil.class.php | 1 - wcfsetup/install/files/lib/util/HTTPRequest.class.php | 2 -- 67 files changed, 7 insertions(+), 141 deletions(-) diff --git a/wcfsetup/install.php b/wcfsetup/install.php index b92950db948..cae78780667 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -1,4 +1,5 @@ assignment->getConditions(); foreach ($conditions as $condition) { - /** @noinspection PhpUndefinedMethodInspection */ $this->conditions[$condition->getObjectType()->conditiongroup][$condition->objectTypeID]->getProcessor()->setData($condition); } } diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index af95241664c..0dfd78dae29 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -143,7 +143,6 @@ protected function invoke() // validate accessibility $className = $this->className; - /** @noinspection PhpUndefinedFieldInspection */ if (!\property_exists($className, 'allowInvoke') || !\in_array($this->actionName, $className::$allowInvoke)) { throw new PermissionDeniedException(); } diff --git a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php index 09b62597dec..b4cd65b139e 100644 --- a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php @@ -99,7 +99,6 @@ protected function sendResponse() { // add benchmark and debug data if (ENABLE_BENCHMARK) { - /** @noinspection PhpUndefinedMethodInspection */ $this->response['benchmark'] = [ 'executionTime' => WCF::getBenchmark()->getExecutionTime() . 's', 'memoryUsage' => WCF::getBenchmark()->getMemoryUsage(), @@ -109,7 +108,6 @@ protected function sendResponse() ]; if (ENABLE_DEBUG_MODE) { - /** @noinspection PhpUndefinedMethodInspection */ $this->response['benchmark']['items'] = WCF::getBenchmark()->getItems(); } } diff --git a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php index 7adf6d39dde..0e5b470d551 100644 --- a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php +++ b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php @@ -31,7 +31,6 @@ public function execute(): ResponseInterface $processor = null; try { // post back to paypal to validate - /** @noinspection PhpUnusedLocalVariableInspection */ $content = ''; try { $url = 'https://www.paypal.com/cgi-bin/webscr'; diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 6e73e2e0656..ab232707553 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -140,7 +140,6 @@ public function __construct(array $objects, $action, array $parameters = []) throw new SystemException('invalid value of parameter objects given'); } - /** @noinspection PhpVariableVariableInspection */ $this->objectIDs[] = $object->{$indexName}; } else { $this->objectIDs[] = $object; diff --git a/wcfsetup/install/files/lib/data/DatabaseObject.class.php b/wcfsetup/install/files/lib/data/DatabaseObject.class.php index 5bc2f040989..e8615ea41e4 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObject.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObject.class.php @@ -229,7 +229,6 @@ public static function sort(&$objects, $sortBy, $sortOrder = 'ASC', $maintainInd { $sortArray = $objects2 = []; foreach ($objects as $idx => $obj) { - /** @noinspection PhpVariableVariableInspection */ $sortArray[$idx] = $obj->{$sortBy}; // array_multisort will drop index association if key is not a string diff --git a/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php b/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php index 47937c1f4f8..ae1fdffd462 100644 --- a/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php +++ b/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php @@ -69,7 +69,6 @@ public function getCategories() if (!empty($this->categoryIDs)) { foreach ($this->categoryIDs as $categoryID) { - /** @noinspection PhpUndefinedMethodInspection */ $this->categories[$categoryID] = $className::getCategory($categoryID); } } else { @@ -84,7 +83,6 @@ public function getCategories() $statement = WCF::getDB()->prepare($sql); $statement->execute([$this->getObjectID()]); while ($categoryID = $statement->fetchColumn()) { - /** @noinspection PhpUndefinedMethodInspection */ $this->categories[$categoryID] = $className::getCategory($categoryID); } } diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php index 20f5fd3d76f..5aed9f21380 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php @@ -29,8 +29,6 @@ class ACPSessionLog extends DatabaseObject */ protected static $databaseTableIndexName = 'sessionLogID'; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * @inheritDoc */ diff --git a/wcfsetup/install/files/lib/data/ad/Ad.class.php b/wcfsetup/install/files/lib/data/ad/Ad.class.php index 7cf08340bee..bde22df25e1 100644 --- a/wcfsetup/install/files/lib/data/ad/Ad.class.php +++ b/wcfsetup/install/files/lib/data/ad/Ad.class.php @@ -47,9 +47,7 @@ public function getLocation() $objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID); $location = WCF::getLanguage()->get('wcf.acp.ad.location.' . $objectType->objectType); - /** @noinspection PhpUndefinedFieldInspection */ if ($objectType->categoryname != 'com.woltlab.wcf.global') { - /** @noinspection PhpUndefinedFieldInspection */ $location = WCF::getLanguage()->get('wcf.acp.ad.location.category.' . $objectType->categoryname) . ': ' . $location; } diff --git a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php index 51337b9c2e4..49053f3347b 100644 --- a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php +++ b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php @@ -104,7 +104,6 @@ public function create() if (!empty($this->parameters['content'])) { foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -147,7 +146,6 @@ public function create() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($articleContent->articleContentID); if (MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $articleContentEditor->update(['hasEmbeddedObjects' => 1]); @@ -206,7 +204,6 @@ public function update() foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -282,7 +279,6 @@ public function update() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($articleContent->articleContentID); if ($articleContent->hasEmbeddedObjects != MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $articleContentEditor->update(['hasEmbeddedObjects' => $articleContent->hasEmbeddedObjects ? 0 : 1]); diff --git a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php index 83b8c23d8bb..0c7a9f05725 100644 --- a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php @@ -15,8 +15,6 @@ */ class CategoryArticleList extends AccessibleArticleList { - /** @noinspection PhpMissingParentConstructorInspection */ - /** * Creates a new CategoryArticleList object. * diff --git a/wcfsetup/install/files/lib/data/box/BoxAction.class.php b/wcfsetup/install/files/lib/data/box/BoxAction.class.php index aba512757c0..7cebe65121e 100644 --- a/wcfsetup/install/files/lib/data/box/BoxAction.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxAction.class.php @@ -74,7 +74,6 @@ public function create() if (!empty($this->parameters['content'])) { foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -90,7 +89,6 @@ public function create() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($boxContent->boxContentID); if (MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $boxContentEditor->update(['hasEmbeddedObjects' => 1]); @@ -157,7 +155,6 @@ public function update() foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -195,7 +192,6 @@ public function update() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($boxContent->boxContentID); if ($boxContent->hasEmbeddedObjects != MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $boxContentEditor->update(['hasEmbeddedObjects' => $boxContent->hasEmbeddedObjects ? 0 : 1]); diff --git a/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php b/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php index 33d58ab2645..624c657a9eb 100644 --- a/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php @@ -29,8 +29,6 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction */ public $objectTypeID = 0; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * This is a heavily modified constructor which behaves differently from other DBOActions, * primarily because this class just masquerades as a regular DBOAction. diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index 6fae4c8495a..9b7e98c6e99 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -106,12 +106,10 @@ public function getLikeDetails() $values = []; if (!empty($data[Like::LIKE])) { $values[Like::LIKE] = new GroupedUserList(WCF::getLanguage()->get('wcf.like.details.like')); - /** @noinspection PhpUndefinedMethodInspection */ $values[Like::LIKE]->addUserIDs($data[Like::LIKE]); } if (!empty($data[Like::DISLIKE])) { $values[Like::DISLIKE] = new GroupedUserList(WCF::getLanguage()->get('wcf.like.details.dislike')); - /** @noinspection PhpUndefinedMethodInspection */ $values[Like::DISLIKE]->addUserIDs($data[Like::DISLIKE]); } @@ -300,12 +298,10 @@ public function getGroupedUserList() $values = []; if (!empty($data[Like::LIKE])) { $values[Like::LIKE] = new GroupedUserList(WCF::getLanguage()->get('wcf.like.details.like')); - /** @noinspection PhpUndefinedMethodInspection */ $values[Like::LIKE]->addUserIDs($data[Like::LIKE]); } if (!empty($data[Like::DISLIKE])) { $values[Like::DISLIKE] = new GroupedUserList(WCF::getLanguage()->get('wcf.like.details.dislike')); - /** @noinspection PhpUndefinedMethodInspection */ $values[Like::DISLIKE]->addUserIDs($data[Like::DISLIKE]); } diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index a60f73dce03..4b1b52776a4 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -50,7 +50,6 @@ public function validateUpload() $this->readBoolean('imagesOnly', true); $this->readInteger('categoryID', true); - /** @noinspection PhpUndefinedMethodInspection */ $this->parameters['__files']->validateFiles(new MediaUploadFileValidationStrategy($this->parameters['imagesOnly'])); if ($this->parameters['categoryID']) { @@ -77,7 +76,6 @@ public function upload() 'rotateImages' => true, ], $additionalData); - /** @noinspection PhpUndefinedMethodInspection */ $this->parameters['__files']->saveFiles($saveStrategy); /** @var Media[] $mediaFiles */ @@ -106,7 +104,6 @@ public function upload() } /** @var UploadFile[] $files */ - /** @noinspection PhpUndefinedMethodInspection */ $files = $this->parameters['__files']->getFiles(); foreach ($files as $file) { if ($file->getValidationErrorType()) { @@ -480,11 +477,9 @@ public function update() if (isset($this->parameters[$type])) { if (\is_array($this->parameters[$type])) { if (isset($this->parameters[$type][$language->languageID])) { - /** @noinspection PhpVariableVariableInspection */ ${$type} = $this->parameters[$type][$language->languageID]; } } else { - /** @noinspection PhpVariableVariableInspection */ ${$type} = $this->parameters[$type]; } } @@ -760,7 +755,6 @@ public function validateReplaceFile() $this->getSingleObject(); - /** @noinspection PhpUndefinedMethodInspection */ $this->parameters['__files']->validateFiles( new MediaReplaceUploadFileValidationStrategy($this->getSingleObject()->getDecoratedObject()) ); @@ -809,7 +803,6 @@ public function replaceFile() 'largeThumbnailHeight' => 0, ]); - /** @noinspection PhpUndefinedMethodInspection */ $this->parameters['__files']->saveFiles($saveStrategy); /** @var Media[] $mediaFiles */ @@ -838,7 +831,6 @@ public function replaceFile() } /** @var UploadFile[] $files */ - /** @noinspection PhpUndefinedMethodInspection */ $files = $this->parameters['__files']->getFiles(); foreach ($files as $file) { if ($file->getValidationErrorType()) { diff --git a/wcfsetup/install/files/lib/data/page/PageAction.class.php b/wcfsetup/install/files/lib/data/page/PageAction.class.php index 17198906595..f81220ba1be 100644 --- a/wcfsetup/install/files/lib/data/page/PageAction.class.php +++ b/wcfsetup/install/files/lib/data/page/PageAction.class.php @@ -85,7 +85,6 @@ public function create() if (!empty($this->parameters['content'])) { foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -116,7 +115,6 @@ public function create() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($pageContent->pageContentID); if (MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $pageContentEditor->update(['hasEmbeddedObjects' => 1]); @@ -175,7 +173,6 @@ public function update() foreach ($this->parameters['content'] as $languageID => $content) { if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['content'] = $content['htmlInputProcessor']->getHtml(); } @@ -232,7 +229,6 @@ public function update() // save embedded objects if (!empty($content['htmlInputProcessor'])) { - /** @noinspection PhpUndefinedMethodInspection */ $content['htmlInputProcessor']->setObjectID($pageContent->pageContentID); if ($pageContent->hasEmbeddedObjects != MessageEmbeddedObjectManager::getInstance()->registerObjects($content['htmlInputProcessor'])) { $pageContentEditor->update(['hasEmbeddedObjects' => $pageContent->hasEmbeddedObjects ? 0 : 1]); diff --git a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php index 174bdabacf3..b30f6591380 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php @@ -54,7 +54,6 @@ public function create() $this->parameters['data']['endDate'] = 0; } else { $d = DateUtil::getDateTimeByTimestamp($this->parameters['data']['startDate']); - /** @noinspection PhpUndefinedMethodInspection */ $d->add($this->parameters['subscription']->getDateInterval()); $this->parameters['data']['endDate'] = $d->getTimestamp(); } diff --git a/wcfsetup/install/files/lib/data/template/Template.class.php b/wcfsetup/install/files/lib/data/template/Template.class.php index b44b470f9b9..20f7fd14a2b 100644 --- a/wcfsetup/install/files/lib/data/template/Template.class.php +++ b/wcfsetup/install/files/lib/data/template/Template.class.php @@ -30,8 +30,6 @@ class Template extends DatabaseObject */ protected static $systemCriticalTemplates = ['headIncludeJavaScript', 'shared_wysiwyg', 'wysiwygToolbar']; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * @inheritDoc */ diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php index 620bf4f423c..97504c3966a 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventAction.class.php @@ -151,7 +151,6 @@ public function validateSwitchContext() {} */ public function switchContext() { - /** @noinspection PhpUndefinedFieldInspection */ $userAction = new UserAction([WCF::getUser()], 'update', [ 'options' => [ User::getUserOptionID('recentActivitiesFilterByFollowing') => WCF::getUser()->recentActivitiesFilterByFollowing ? 0 : 1, diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php index 04e5741b58c..8313ca906d7 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php @@ -16,8 +16,6 @@ class UserFollowingList extends UserFollowerList */ public $useQualifiedShorthand = false; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * @inheritDoc */ diff --git a/wcfsetup/install/files/lib/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/form/UserSearchForm.class.php index 4116d0c8df6..705d2603696 100644 --- a/wcfsetup/install/files/lib/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/form/UserSearchForm.class.php @@ -83,7 +83,6 @@ public function readFormParameters() */ protected function initOptionHandler() { - /** @noinspection PhpUndefinedMethodInspection */ $this->optionHandler->enableSearchMode(); $this->optionHandler->init(); } diff --git a/wcfsetup/install/files/lib/system/CLIWCF.class.php b/wcfsetup/install/files/lib/system/CLIWCF.class.php index 27a4bfbdad7..f73497b15e5 100644 --- a/wcfsetup/install/files/lib/system/CLIWCF.class.php +++ b/wcfsetup/install/files/lib/system/CLIWCF.class.php @@ -44,8 +44,6 @@ class CLIWCF extends WCF */ protected static $argvParser; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * Calls all init functions of the WCF class. */ diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index a77ff33f294..782724d9ecd 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -32,8 +32,6 @@ class WCFACP extends WCF */ protected static string $rescueModePageURL; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * Calls all init functions of the WCF and the WCFACP class. */ diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 63e61e25bac..97714399a5b 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -76,8 +76,6 @@ final class WCFSetup extends WCF */ protected static $developerMode = 0; - /** @noinspection PhpMissingParentConstructorInspection */ - /** * Calls all init functions of the WCFSetup class and starts the setup process. */ @@ -1060,7 +1058,6 @@ protected function installPackages(): ResponseInterface \rename($from, $to); - /** @noinspection PhpUndefinedVariableInspection */ $queue = PackageInstallationQueueEditor::create([ 'parentQueueID' => $queue->queueID, 'processNo' => $processNo, diff --git a/wcfsetup/install/files/lib/system/api/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php b/wcfsetup/install/files/lib/system/api/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php index b9846c37e78..5f4af01f21f 100644 --- a/wcfsetup/install/files/lib/system/api/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php +++ b/wcfsetup/install/files/lib/system/api/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php @@ -1,4 +1,6 @@ - $prev[$j + 1]) { diff --git a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php index de288cf49d2..6a046357f49 100644 --- a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php @@ -102,7 +102,6 @@ protected function getObjectList() public function getTemplate() { if ($this->getBox()->position == 'contentTop' || $this->getBox()->position == 'contentBottom') { - /** @noinspection PhpUndefinedMethodInspection */ return WCF::getTPL()->render('wcf', 'boxRecentActivity', [ 'boxID' => $this->getBox()->boxID, 'canFilterByFollowedUsers' => $this->canFilterByFollowedUsers, @@ -167,7 +166,6 @@ protected function readObjects() parent::readObjects(); // removes orphaned and non-accessible events - /** @noinspection PhpParamsInspection */ UserActivityEventHandler::validateEvents($this->objectList); // remove unused items diff --git a/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php index 4908fc39c73..0188ab39f2d 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php @@ -33,7 +33,6 @@ public function rebuild(array $parameters) ACLHandler::getInstance()->getObjectTypeID($aclObjectType), \array_keys($categories) ); - /** @noinspection PhpUndefinedMethodInspection */ $options = $aclOptions['options']->getObjects(); foreach (['group', 'user'] as $type) { diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php index 9645e73e481..2a129af4358 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -251,7 +251,6 @@ protected function loadMarkedItems($objectTypeID = null) } if (!isset($data[$objectType->objectType])) { - /** @noinspection PhpUndefinedFieldInspection */ $listClassName = $objectType->listclassname; if ($listClassName == '') { throw new SystemException("Missing list class for object type '" . $objectType->objectType . "'"); @@ -281,7 +280,6 @@ protected function loadMarkedItems($objectTypeID = null) // validate object ids against loaded items (check for zombie object ids) $indexName = $objectList->getDatabaseTableIndexName(); foreach ($this->markedItems[$objectType] as $object) { - /** @noinspection PhpVariableVariableInspection */ $index = \array_search($object->{$indexName}, $objectData['objectIDs']); unset($objectData['objectIDs'][$index]); } diff --git a/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php index c9baf8c36e0..a4f62a1fcc6 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php @@ -34,7 +34,6 @@ abstract class AbstractMultiCategoryCondition extends AbstractMultiSelectConditi */ protected function getFieldElement() { - /** @noinspection PhpUndefinedMethodInspection */ $categoryTree = (new $this->nodeTreeClassname($this->objectType))->getIterator(); $categoryCount = \iterator_count($categoryTree); diff --git a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php index f39b374a686..71ef2e8e372 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php @@ -211,13 +211,11 @@ public function reset() */ public function setData(Condition $condition) { - /** @noinspection PhpUndefinedFieldInspection */ $endTime = $condition->endTime; if ($endTime) { $this->endTime = $endTime; } - /** @noinspection PhpUndefinedFieldInspection */ $startTime = $condition->startTime; if ($startTime) { $this->startTime = $startTime; diff --git a/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php b/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php index 626995b38d4..59f384f51cb 100644 --- a/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php @@ -53,7 +53,6 @@ public function showContent(Condition $condition) $date = DateUtil::getDateTimeByTimestamp(TIME_NOW); $date->setTimezone(WCF::getUser()->getTimeZone()); - /** @noinspection PhpUndefinedFieldInspection */ return \in_array($date->format('w'), $condition->daysOfWeek); } } diff --git a/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php b/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php index 1bc2b34d79c..54ed66a895a 100644 --- a/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php @@ -148,19 +148,16 @@ public function reset() */ public function setData(Condition $condition) { - /** @noinspection PhpUndefinedFieldInspection */ $endTime = $condition->endTime; if ($endTime) { $this->endTime = $endTime; } - /** @noinspection PhpUndefinedFieldInspection */ $startTime = $condition->startTime; if ($startTime) { $this->startTime = $startTime; } - /** @noinspection PhpUndefinedFieldInspection */ $timezone = $condition->timezone; if ($timezone) { $this->timezone = $timezone; @@ -217,13 +214,11 @@ public function validate() public function showContent(Condition $condition) { $timezone = WCF::getUser()->getTimeZone(); - /** @noinspection PhpUndefinedFieldInspection */ $conditionTimezone = $condition->timezone; if ($conditionTimezone) { $timezone = new \DateTimeZone($conditionTimezone); } - /** @noinspection PhpUndefinedFieldInspection */ $startTime = $condition->startTime; if ($startTime) { $dateTime = \DateTimeImmutable::createFromFormat('H:i', $startTime, $timezone); @@ -232,7 +227,6 @@ public function showContent(Condition $condition) } } - /** @noinspection PhpUndefinedFieldInspection */ $endTime = $condition->endTime; if ($endTime) { $dateTime = \DateTimeImmutable::createFromFormat('H:i', $endTime, $timezone); diff --git a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php index 7663157fd77..f1a771ab99c 100644 --- a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php @@ -184,7 +184,6 @@ protected function getOptionElements($identifier) $returnValue = '
    '; foreach ($userGroups as $userGroup) { - /** @noinspection PhpVariableVariableInspection */ $returnValue .= "