Use class constant
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 11:49:07 +0000 (13:49 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 12:19:38 +0000 (14:19 +0200)
211 files changed:
wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php
wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php
wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php
wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php
wcfsetup/install/files/lib/acp/form/UserOptionListForm.class.php
wcfsetup/install/files/lib/acp/page/ACPSessionLogListPage.class.php
wcfsetup/install/files/lib/acp/page/ACPSessionLogPage.class.php
wcfsetup/install/files/lib/acp/page/AdListPage.class.php
wcfsetup/install/files/lib/acp/page/AttachmentListPage.class.php
wcfsetup/install/files/lib/acp/page/BBCodeListPage.class.php
wcfsetup/install/files/lib/acp/page/BBCodeMediaProviderListPage.class.php
wcfsetup/install/files/lib/acp/page/BoxListPage.class.php
wcfsetup/install/files/lib/acp/page/CaptchaQuestionListPage.class.php
wcfsetup/install/files/lib/acp/page/CronjobListPage.class.php
wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php
wcfsetup/install/files/lib/acp/page/LabelGroupListPage.class.php
wcfsetup/install/files/lib/acp/page/LanguageListPage.class.php
wcfsetup/install/files/lib/acp/page/MenuListPage.class.php
wcfsetup/install/files/lib/acp/page/NoticeListPage.class.php
wcfsetup/install/files/lib/acp/page/PackageListPage.class.php
wcfsetup/install/files/lib/acp/page/PackageUpdateServerListPage.class.php
wcfsetup/install/files/lib/acp/page/PageListPage.class.php
wcfsetup/install/files/lib/acp/page/PaidSubscriptionListPage.class.php
wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php
wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php
wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php
wcfsetup/install/files/lib/acp/page/StyleListPage.class.php
wcfsetup/install/files/lib/acp/page/TagListPage.class.php
wcfsetup/install/files/lib/acp/page/TemplateGroupListPage.class.php
wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php
wcfsetup/install/files/lib/acp/page/UserAuthenticationFailureListPage.class.php
wcfsetup/install/files/lib/acp/page/UserGroupAssignmentListPage.class.php
wcfsetup/install/files/lib/acp/page/UserGroupListPage.class.php
wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php
wcfsetup/install/files/lib/acp/page/UserOptionListPage.class.php
wcfsetup/install/files/lib/acp/page/UserRankListPage.class.php
wcfsetup/install/files/lib/action/AJAXProxyAction.class.php
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php
wcfsetup/install/files/lib/data/DatabaseObjectList.class.php
wcfsetup/install/files/lib/data/ProcessibleDatabaseObject.class.php
wcfsetup/install/files/lib/data/acl/option/ACLOptionAction.class.php
wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategoryAction.class.php
wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemAction.class.php
wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLogAction.class.php
wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLogAction.class.php
wcfsetup/install/files/lib/data/acp/template/ACPTemplateAction.class.php
wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php
wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttributeAction.class.php
wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderAction.class.php
wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php
wcfsetup/install/files/lib/data/clipboard/action/ClipboardActionAction.class.php
wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
wcfsetup/install/files/lib/data/core/object/CoreObjectAction.class.php
wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php
wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php
wcfsetup/install/files/lib/data/cronjob/log/CronjobLogAction.class.php
wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php
wcfsetup/install/files/lib/data/event/listener/EventListenerAction.class.php
wcfsetup/install/files/lib/data/label/group/LabelGroupAction.class.php
wcfsetup/install/files/lib/data/language/LanguageAction.class.php
wcfsetup/install/files/lib/data/language/category/LanguageCategoryAction.class.php
wcfsetup/install/files/lib/data/language/item/LanguageItemAction.class.php
wcfsetup/install/files/lib/data/like/LikeAction.class.php
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php
wcfsetup/install/files/lib/data/object/type/ObjectTypeAction.class.php
wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionAction.class.php
wcfsetup/install/files/lib/data/option/OptionAction.class.php
wcfsetup/install/files/lib/data/option/category/OptionCategoryAction.class.php
wcfsetup/install/files/lib/data/package/PackageAction.class.php
wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginAction.class.php
wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueAction.class.php
wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php
wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersionAction.class.php
wcfsetup/install/files/lib/data/poll/PollAction.class.php
wcfsetup/install/files/lib/data/poll/option/PollOptionAction.class.php
wcfsetup/install/files/lib/data/search/SearchAction.class.php
wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php
wcfsetup/install/files/lib/data/session/SessionAction.class.php
wcfsetup/install/files/lib/data/sitemap/Sitemap.class.php
wcfsetup/install/files/lib/data/smiley/SmileyAction.class.php
wcfsetup/install/files/lib/data/smiley/category/SmileyCategoryAction.class.php
wcfsetup/install/files/lib/data/spider/SpiderAction.class.php
wcfsetup/install/files/lib/data/stat/daily/StatDailyAction.class.php
wcfsetup/install/files/lib/data/style/StyleAction.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php
wcfsetup/install/files/lib/data/style/variable/StyleVariableAction.class.php
wcfsetup/install/files/lib/data/tag/TagAction.class.php
wcfsetup/install/files/lib/data/template/TemplateAction.class.php
wcfsetup/install/files/lib/data/template/TemplateList.class.php
wcfsetup/install/files/lib/data/template/group/TemplateGroupAction.class.php
wcfsetup/install/files/lib/data/template/listener/TemplateListenerAction.class.php
wcfsetup/install/files/lib/data/user/follow/UserFollowingAction.class.php
wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php
wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionAction.class.php
wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategoryAction.class.php
wcfsetup/install/files/lib/data/user/ignore/ViewableUserIgnoreList.class.php
wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php
wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php
wcfsetup/install/files/lib/data/user/option/UserOptionAction.class.php
wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryAction.class.php
wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php
wcfsetup/install/files/lib/page/FollowingPage.class.php
wcfsetup/install/files/lib/page/IgnoredUsersPage.class.php
wcfsetup/install/files/lib/page/MembersListPage.class.php
wcfsetup/install/files/lib/page/ModerationListPage.class.php
wcfsetup/install/files/lib/page/MultipleLinkPage.class.php
wcfsetup/install/files/lib/page/SearchResultPage.class.php
wcfsetup/install/files/lib/system/CLIWCF.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/application/AbstractApplication.class.php
wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php
wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php
wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/SmileyCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/UserGroupOptionCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/UserMenuCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/UserOptionCacheBuilder.class.php
wcfsetup/install/files/lib/system/cache/builder/UserStatsCacheBuilder.class.php
wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php
wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php
wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php
wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php
wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/database/Database.class.php
wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php
wcfsetup/install/files/lib/system/database/PostgreSQLDatabase.class.php
wcfsetup/install/files/lib/system/event/EventHandler.class.php
wcfsetup/install/files/lib/system/form/element/MultipleSelectionFormElement.class.php
wcfsetup/install/files/lib/system/image/ImageHandler.class.php
wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractCommentResponseImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractPollOptionImporter.class.php
wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php
wcfsetup/install/files/lib/system/importer/LabelGroupImporter.class.php
wcfsetup/install/files/lib/system/importer/LabelImporter.class.php
wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php
wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php
wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php
wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php
wcfsetup/install/files/lib/system/importer/UserImporter.class.php
wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php
wcfsetup/install/files/lib/system/importer/UserRankImporter.class.php
wcfsetup/install/files/lib/system/label/LabelHandler.class.php
wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php
wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php
wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php
wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php
wcfsetup/install/files/lib/system/option/FileOptionType.class.php
wcfsetup/install/files/lib/system/option/OptionHandler.class.php
wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php
wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SitemapPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php
wcfsetup/install/files/lib/system/poll/PollManager.class.php
wcfsetup/install/files/lib/system/search/SearchEngine.class.php
wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php
wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php
wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php
wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/search/acp/PackageACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/search/acp/UserACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/search/acp/UserGroupOptionACPSearchResultProvider.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php
wcfsetup/install/files/lib/system/tagging/TagEngine.class.php
wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php
wcfsetup/install/files/lib/system/user/authentication/IUserAuthentication.class.php
wcfsetup/install/files/lib/system/user/authentication/UserAuthenticationFactory.class.php
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php
wcfsetup/install/files/lib/system/user/notification/object/type/LikeUserNotificationObjectType.class.php
wcfsetup/install/files/lib/system/user/notification/object/type/UserFollowUserNotificationObjectType.class.php
wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentResponseUserNotificationObjectType.class.php
wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentUserNotificationObjectType.class.php
wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php
wcfsetup/install/files/lib/system/worker/AttachmentRebuildDataWorker.class.php
wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php
wcfsetup/install/files/lib/system/worker/LikeUserRebuildDataWorker.class.php
wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php
wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php
wcfsetup/install/files/lib/util/HeaderUtil.class.php

index 660891a3d580f8683341bd4c2f0b4557886c58aa..5455b9de4a6ab437e0008f8fbb8b93859f752c52 100755 (executable)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\acp\action;
 use wcf\action\AbstractDialogAction;
+use wcf\data\application\Application;
 use wcf\data\package\installation\queue\PackageInstallationQueue;
 use wcf\system\cache\CacheHandler;
 use wcf\system\exception\IllegalLinkException;
@@ -116,7 +117,7 @@ class InstallPackageAction extends AbstractDialogAction {
                                        WHERE   packageID = ?";
                                $statement = WCF::getDB()->prepareStatement($sql);
                                $statement->execute([$packageID]);
-                               $application = $statement->fetchObject('wcf\data\application\Application');
+                               $application = $statement->fetchObject(Application::class);
                                
                                // build redirect location
                                $location = $application->getPageURL() . 'acp/index.php?package-list/';
index 70591388e84ca27b239aac7914a4fad53ee9407d..f854e0fb275b919e6289e12c2ac173b838d93550 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\acp\action;
 use wcf\action\AbstractDialogAction;
+use wcf\data\application\Application;
 use wcf\data\package\installation\queue\PackageInstallationQueue;
 use wcf\data\package\installation\queue\PackageInstallationQueueEditor;
 use wcf\data\package\Package;
@@ -132,7 +133,7 @@ class UninstallPackageAction extends InstallPackageAction {
                                WHERE   packageID = ?";
                        $statement = WCF::getDB()->prepareStatement($sql);
                        $statement->execute([$packageID]);
-                       $application = $statement->fetchObject('wcf\data\application\Application');
+                       $application = $statement->fetchObject(Application::class);
                        
                        // build redirect location
                        $location = $application->getPageURL() . 'acp/index.php?package-list/';
index 3c823cb2c3137dc46101d900bf99327ce8ad932e..8c4f6cabc6d7c8913f2c92ce3a73fe6c0529668b 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\acp\action;
 use wcf\action\AbstractSecureAction;
 use wcf\action\AJAXInvokeAction;
 use wcf\system\exception\SystemException;
+use wcf\system\worker\IWorker;
 use wcf\system\WCF;
 use wcf\util\JSON;
 
@@ -63,8 +64,8 @@ class WorkerProxyAction extends AJAXInvokeAction {
                        throw new SystemException("class name cannot be empty.");
                }
                
-               if (!is_subclass_of($this->className, 'wcf\system\worker\IWorker')) {
-                       throw new SystemException("'".$this->className."' does not implement 'wcf\system\worker\IWorker'");
+               if (!is_subclass_of($this->className, IWorker::class)) {
+                       throw new SystemException("'".$this->className."' does not implement '".IWorker::class."'");
                }
        }
        
index c4bf1ef69dfef6229a1189467ee64ec90c95782d..c0e78debcfa0c8d5eeeb3eb9fc44b8d2802183eb 100755 (executable)
@@ -2,6 +2,7 @@
 namespace wcf\acp\form;
 use wcf\form\AbstractForm;
 use wcf\system\exception\UserInputException;
+use wcf\system\option\OptionHandler;
 
 /**
  * This class provides default implementations for a list of options.
@@ -46,7 +47,7 @@ abstract class AbstractOptionListForm extends AbstractForm {
         * option handler class name
         * @var string
         */
-       public $optionHandlerClassName = 'wcf\system\option\OptionHandler';
+       public $optionHandlerClassName = OptionHandler::class;
        
        /**
         * true if option supports i18n
index 9eb0f5b426cf39eedc038ce3281d9df88a4e5460..5419053c73ca31cf0e45a1bf4c59d0680548119c 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\acp\form;
 use wcf\data\user\group\UserGroup;
 use wcf\system\language\LanguageFactory;
+use wcf\system\option\user\UserOptionHandler;
 
 /**
  * This class provides default implementations for a list of dynamic user options.
@@ -17,7 +18,7 @@ abstract class UserOptionListForm extends AbstractOptionListForm {
        /**
         * @inheritDoc
         */
-       public $optionHandlerClassName = 'wcf\system\option\user\UserOptionHandler';
+       public $optionHandlerClassName = UserOptionHandler::class;
        
        /**
         * @inheritDoc
index a19ea7c1fb7919442cd1f61ed991d4905ddaf2dd..f2109f9f3d5e2c2b3f1945a77953da25060b981f 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\acp\session\log\ACPSessionLogList;
 use wcf\page\SortablePage;
 
 /**
@@ -46,7 +47,7 @@ class ACPSessionLogListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\acp\session\log\ACPSessionLogList';
+       public $objectListClassName = ACPSessionLogList::class;
        
        /**
         * @inheritDoc
index ae9e46e7d017345f417da4b6a1845738edfc31bc..62781dc17c6c652a5564e2155d1cd0ccbafb5d40 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\acp\session\access\log\ACPSessionAccessLogList;
 use wcf\data\acp\session\log\ACPSessionLog;
 use wcf\page\SortablePage;
 use wcf\system\exception\IllegalLinkException;
@@ -56,7 +57,7 @@ class ACPSessionLogPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\acp\session\access\log\ACPSessionAccessLogList';
+       public $objectListClassName = ACPSessionAccessLogList::class;
        
        /**
         * @inheritDoc
index d8275a1b622b8fc24ecc7c36f47f4b4250499714..5f147e5ecad03c44f7f7a5d85db115b0f4b88652 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\ad\AdList;
 use wcf\page\MultipleLinkPage;
 
 /**
@@ -31,7 +32,7 @@ class AdListPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\ad\AdList';
+       public $objectListClassName = AdList::class;
        
        /**
         * @inheritDoc
index 28b0ba29ca55199da305ab6c6493d34be7c77498..f40e63d16c682520c6433b4f677ae470d5f8dc89 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\attachment\AdministrativeAttachmentList;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\user\User;
 use wcf\page\SortablePage;
@@ -45,7 +46,7 @@ class AttachmentListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\attachment\AdministrativeAttachmentList';
+       public $objectListClassName = AdministrativeAttachmentList::class;
        
        /**
         * username
index bf85d8441c5169d9e668d27328fe471f5d12d590..1c78b28fa07807ec8ebed15fb7310321fcdcfc58 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\bbcode\BBCodeList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class BBCodeListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\bbcode\BBCodeList';
+       public $objectListClassName = BBCodeList::class;
        
        /**
         * @inheritDoc
index c1192523b99397a3b0b6ad15f2309f8a0a28150a..3b9468691953e8dd79d60f459f5c4ddbe1162cf3 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\bbcode\media\provider\BBCodeMediaProviderList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class BBCodeMediaProviderListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\bbcode\media\provider\BBCodeMediaProviderList';
+       public $objectListClassName = BBCodeMediaProviderList::class;
        
        /**
         * @inheritDoc
index edb211022e5843d4fdb2adc16affd92bd1768db0..c2e7dc6bee052a985a8efdc8fb45dfed8d70e19b 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\acp\page;
 use wcf\data\box\Box;
+use wcf\data\box\BoxList;
 use wcf\page\SortablePage;
 use wcf\system\WCF;
 use wcf\util\StringUtil;
@@ -25,7 +26,7 @@ class BoxListPage extends SortablePage {
        /**
         * @inheritdoc
         */
-       public $objectListClassName = 'wcf\data\box\BoxList';
+       public $objectListClassName = BoxList::class;
        
        /**
         * @inheritdoc
index 95a42aee488f3ac023fbd09c5b2bb1cbe52c9d55..f21efc9fb01249e3dde0924c724d259c7ba50587 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\captcha\question\CaptchaQuestionList;
 use wcf\page\MultipleLinkPage;
 
 /**
@@ -26,7 +27,7 @@ class CaptchaQuestionListPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\captcha\question\CaptchaQuestionList';
+       public $objectListClassName = CaptchaQuestionList::class;
        
        /**
         * @inheritDoc
index cce7f5ee46a9b0cf6a32d3486a11f41a2b98ad27..5767e43fb9146b6420202e7fd5d450e96ea93149 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\cronjob\CronjobList;
 use wcf\page\SortablePage;
 
 /**
@@ -36,7 +37,7 @@ class CronjobListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\cronjob\CronjobList';
+       public $objectListClassName = CronjobList::class;
        
        /**
         * @inheritDoc
index ccaf43730bf39c4cbd68c6b779c08892e4ce0ce0..52ee9ec69fd094c1516b379c763c3ecef2bf381b 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\cronjob\log\CronjobLogList;
 use wcf\page\SortablePage;
 
 /**
@@ -46,7 +47,7 @@ class CronjobLogListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\cronjob\log\CronjobLogList';
+       public $objectListClassName = CronjobLogList::class;
        
        /**
         * @inheritDoc
index 6daed565a68e72ff5484139de4c67e1eecc0379a..477d73db75fd727617e91b6b82a24971fee604aa 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\label\group\LabelGroupList;
 use wcf\page\SortablePage;
 
 /**
@@ -36,5 +37,5 @@ class LabelGroupListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\label\group\LabelGroupList';
+       public $objectListClassName = LabelGroupList::class;
 }
index 18459e80df0e3c04e7d6593e185c528960941e0a..d387a36ad6964abeaed2ed90ee3a5bfe825b9735 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\language\LanguageList;
 use wcf\page\SortablePage;
 use wcf\system\WCF;
 
@@ -32,7 +33,7 @@ class LanguageListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\language\LanguageList';
+       public $objectListClassName = LanguageList::class;
        
        /**
         * @inheritDoc
index 37a66eeba9326b998ecb2d2cb57f17b887f8202f..60d6d72f96e0fd67b66dbf6942d6cc4e91763e19 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\menu\MenuList;
 use wcf\page\SortablePage;
 
 /**
@@ -22,7 +23,7 @@ class MenuListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\menu\MenuList';
+       public $objectListClassName = MenuList::class;
        
        /**
         * @inheritDoc
index 3b55c68ae0cd1457dfd19c52c6fac64bece57510..fb6ae987d0ffb915bc9210f506ef59fd55293e10 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\notice\NoticeList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class NoticeListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\notice\NoticeList';
+       public $objectListClassName = NoticeList::class;
        
        /**
         * @inheritDoc
index 6781bf9a77be5373dca972086872994374eee61f..611aac24c04a9dd9865cc855117bf462735041e0 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\package\PackageList;
 use wcf\page\SortablePage;
 use wcf\system\WCF;
 
@@ -53,7 +54,7 @@ class PackageListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\package\PackageList';
+       public $objectListClassName = PackageList::class;
        
        /**
         * @inheritDoc
index 569186b7d57cc15c29dadb4feb664d8e6ef43aa9..3d72f1738adf814cb02b6f07de8ed1fd6f4e1403 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\package\update\server\PackageUpdateServerList;
 use wcf\page\SortablePage;
 
 /**
@@ -36,7 +37,7 @@ class PackageUpdateServerListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\package\update\server\PackageUpdateServerList';
+       public $objectListClassName = PackageUpdateServerList::class;
        
        /**
         * @inheritDoc
index c0e16b7d2c7ef886bc8a7b3613fc506d25e6d1b1..87c5e16c7022fd24b3875f1b6b4aa77fe4f3e308 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\acp\page;
 use wcf\data\application\Application;
 use wcf\data\application\ApplicationList;
+use wcf\data\page\PageList;
 use wcf\page\SortablePage;
 use wcf\system\WCF;
 use wcf\util\StringUtil;
@@ -26,7 +27,7 @@ class PageListPage extends SortablePage {
        /**
         * @inheritdoc
         */
-       public $objectListClassName = 'wcf\data\page\PageList';
+       public $objectListClassName = PageList::class;
        
        /**
         * @inheritdoc
index ce988b03d41ff6e389131efe3767a47f17aa518f..170c65c21fda6b7121761a7b3e0cca4450d02428 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\paid\subscription\PaidSubscriptionList;
 use wcf\page\SortablePage;
 
 /**
@@ -41,5 +42,5 @@ class PaidSubscriptionListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\paid\subscription\PaidSubscriptionList';
+       public $objectListClassName = PaidSubscriptionList::class;
 }
index 0adec277b22f2d7efde768abb6a35790dc0e3248..f86aa0c4ea7c9777d48c4dfe673b5094eee2a04d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\paid\subscription\transaction\log\PaidSubscriptionTransactionLogList;
 use wcf\page\SortablePage;
 use wcf\system\cache\builder\PaidSubscriptionCacheBuilder;
 use wcf\system\WCF;
@@ -49,7 +50,7 @@ class PaidSubscriptionTransactionLogListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\paid\subscription\transaction\log\PaidSubscriptionTransactionLogList';
+       public $objectListClassName = PaidSubscriptionTransactionLogList::class;
        
        /**
         * transaction id
index 8dacbd9a2f407b0c6acf05928fa62f7c53266c3a..b040515f5e7498071480dbbd6a6293fda3ac5f4a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\paid\subscription\user\PaidSubscriptionUserList;
 use wcf\page\SortablePage;
 
 /**
@@ -41,7 +42,7 @@ class PaidSubscriptionUserListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\paid\subscription\user\PaidSubscriptionUserList';
+       public $objectListClassName = PaidSubscriptionUserList::class;
        
        /**
         * Initializes DatabaseObjectList instance.
index 496ef03d12102988fd5d2c38de3f327d1a2ae98c..419304ecb27f533f8b49c8c51895272eca48b13b 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\acp\page;
 use wcf\data\category\Category;
 use wcf\data\smiley\category\SmileyCategory;
 use wcf\data\smiley\SmileyCache;
+use wcf\data\smiley\SmileyList;
 use wcf\page\MultipleLinkPage;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\WCF;
@@ -36,7 +37,7 @@ class SmileyListPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\smiley\SmileyList';
+       public $objectListClassName = SmileyList::class;
        
        /**
         * @inheritDoc
index 389db1778cfa09153516cedd3662e7afe37e357f..25b5a663dd25c0b213e9bcef0e372aef005868f2 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\style\StyleList;
 use wcf\page\MultipleLinkPage;
 
 /**
@@ -26,7 +27,7 @@ class StyleListPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\style\StyleList';
+       public $objectListClassName = StyleList::class;
        
        /**
         * @inheritDoc
index 30545421963255a86296374f4cd7ed35f66048b7..2d79212fbccc3b561cd1d4fc24ff986d453c723b 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\tag\TagList;
 use wcf\page\SortablePage;
 use wcf\system\clipboard\ClipboardHandler;
 use wcf\system\WCF;
@@ -44,7 +45,7 @@ class TagListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\tag\TagList';
+       public $objectListClassName = TagList::class;
        
        /**
         * search-query
index a10378ce838ae79c985f7baa28c95bfcefd11201..12fbef8a06328c06a0877358f3d22d43fdb37de1 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\template\group\TemplateGroupList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class TemplateGroupListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\template\group\TemplateGroupList';
+       public $objectListClassName = TemplateGroupList::class;
        
        /**
         * @inheritDoc
index f6a6e7cf333a4b16de5b12b055f4331db51ce0a6..8206eb396ccb13981effea1cfc0220610a067f68 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\acp\page;
 use wcf\data\package\PackageCache;
 use wcf\data\template\group\TemplateGroup;
+use wcf\data\template\TemplateList;
 use wcf\page\SortablePage;
 use wcf\system\application\ApplicationHandler;
 use wcf\system\WCF;
@@ -31,7 +32,7 @@ class TemplateListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\template\TemplateList';
+       public $objectListClassName = TemplateList::class;
        
        /**
         * @inheritDoc
index e282e87254eef7494eab7179b100fbe7621c7820..b30cc34bdee2af20930e488ed0f0b57a88613cd7 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\authentication\failure\UserAuthenticationFailureList;
 use wcf\page\SortablePage;
 
 /**
@@ -46,5 +47,5 @@ class UserAuthenticationFailureListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\authentication\failure\UserAuthenticationFailureList';
+       public $objectListClassName = UserAuthenticationFailureList::class;
 }
index 28407b88e2a6ba0074b2aaba7e2f39e54b732f40..3bf1356bf17962a7fa77959c39e9d3998cf963e4 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\group\assignment\UserGroupAssignmentList;
 use wcf\page\MultipleLinkPage;
 
 /**
@@ -26,5 +27,5 @@ class UserGroupAssignmentListPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\group\assignment\UserGroupAssignmentList';
+       public $objectListClassName = UserGroupAssignmentList::class;
 }
index 6bf4aee49a579aaadb1eca0b15ee4db41e446802..9ee7d382d66cc12f802da2bee3f816003ed946bf 100755 (executable)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\group\UserGroupList;
 use wcf\page\SortablePage;
 use wcf\system\WCF;
 
@@ -37,7 +38,7 @@ class UserGroupListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\group\UserGroupList';
+       public $objectListClassName = UserGroupList::class;
        
        /**
         * indicates if a group has just been deleted
index 0a6cc5cb264e25503d358578a15d947de13ff92e..0f43df81f94d1067154fc82f528be4e9933aa3eb 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\option\category\UserOptionCategoryList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class UserOptionCategoryListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\option\category\UserOptionCategoryList';
+       public $objectListClassName = UserOptionCategoryList::class;
        
        /**
         * @inheritDoc
index c4b2abe31cdb3accd8370ae0b7eec5bb604bd8d6..43530bffebe2fda039e3a3d2860e5549d5f32365 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\option\UserOptionList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class UserOptionListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\option\UserOptionList';
+       public $objectListClassName = UserOptionList::class;
        
        /**
         * @inheritDoc
index 4722b434339de55c82f71e88f080725314ec15b2..b196b676b5dc6b80443e98bf3c0b87c30554fc1a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\acp\page;
+use wcf\data\user\rank\UserRankList;
 use wcf\page\SortablePage;
 
 /**
@@ -31,7 +32,7 @@ class UserRankListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\rank\UserRankList';
+       public $objectListClassName = UserRankList::class;
        
        /**
         * @inheritDoc
index 3f27fd7353b6bf33fa3c468096d0710e0fbf0ae1..d8c8e5bf98ad64468fa2f4912d17f82599e28dca 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\action;
+use wcf\data\IDatabaseObjectAction;
 use wcf\system\exception\SystemException;
 use wcf\system\WCF;
 use wcf\util\ArrayUtil;
@@ -55,8 +56,8 @@ class AJAXProxyAction extends AJAXInvokeAction {
         * @inheritDoc
         */
        protected function invoke() {
-               if (!is_subclass_of($this->className, 'wcf\data\IDatabaseObjectAction')) {
-                       throw new SystemException("'".$this->className."' does not implement 'wcf\data\IDatabaseObjectAction'");
+               if (!is_subclass_of($this->className, IDatabaseObjectAction::class)) {
+                       throw new SystemException("'".$this->className."' does not implement '".IDatabaseObjectAction::class."'");
                }
                
                if (!empty($this->interfaceName)) {
index 4c5919b4d3bae4494482c709a22f547b5aa1dc8b..951d872ed9d9839adbc7f8fad5d455a7aa047fa6 100644 (file)
@@ -214,7 +214,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID
         * Resets cache of database object.
         */
        protected function resetCache() {
-               if (is_subclass_of($this->className, 'wcf\data\IEditableCachedObject')) {
+               if (is_subclass_of($this->className, IEditableCachedObject::class)) {
                        call_user_func([$this->className, 'resetCache']);
                }
        }
index 0aaaea63eba20904bdc6f068a433e3d04900f471..748d7a581b1ddf7053fd2e7c5ab8c2b75700cef0 100644 (file)
@@ -121,8 +121,8 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject {
                
                if (!empty($this->decoratorClassName)) {
                        // validate decorator class name
-                       if (!is_subclass_of($this->decoratorClassName, 'wcf\data\DatabaseObjectDecorator')) {
-                               throw new SystemException("'".$this->decoratorClassName."' should extend 'wcf\data\DatabaseObjectDecorator'");
+                       if (!is_subclass_of($this->decoratorClassName, DatabaseObjectDecorator::class)) {
+                               throw new SystemException("'".$this->decoratorClassName."' should extend '".DatabaseObjectDecorator::class."'");
                        }
                        
                        $objectClassName = $this->objectClassName ?: $this->className;
index a93e5571669cc979176e016edf7c83ef459e0293..9bc0d4f995d5485ce3c516d9cbe1d77de309282d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\data;
 use wcf\system\exception\SystemException;
+use wcf\system\SingletonFactory;
 
 /**
  * Abstract class for all processible data holder classes.
@@ -41,12 +42,12 @@ class ProcessibleDatabaseObject extends DatabaseObject {
                                        throw new SystemException("'".$this->className."' does not implement '".static::$processorInterface."'");
                                }
                                
-                               if (is_subclass_of($this->className, 'wcf\system\SingletonFactory')) {
+                               if (is_subclass_of($this->className, SingletonFactory::class)) {
                                        $this->processor = call_user_func([$this->className, 'getInstance']);
                                }
                                else {
-                                       if (!is_subclass_of($this->className, 'wcf\data\IDatabaseObjectProcessor')) {
-                                               throw new SystemException("'".$this->className."' does not implement 'wcf\data\IDatabaseObjectProcessor'");
+                                       if (!is_subclass_of($this->className, IDatabaseObjectProcessor::class)) {
+                                               throw new SystemException("'".$this->className."' does not implement '".IDatabaseObjectProcessor::class."'");
                                        }
                                        
                                        $this->processor = new $this->className($this);
index a892031ff8c74e396554606f8062b528a1a9ad03..0fce333d7e19cc39d7c40113e553ecb77eec6923 100644 (file)
@@ -17,7 +17,7 @@ class ACLOptionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acl\option\ACLOptionEditor';
+       protected $className = ACLOptionEditor::class;
        
        /**
         * @inheritDoc
index e8522ddff2a8a892238e943268810074799cb234..9b2ed408cbb52bfdabbf94f7c5e70cefcae77fac 100644 (file)
@@ -16,5 +16,5 @@ class ACLOptionCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acl\option\category\ACLOptionCategoryEditor';
+       protected $className = ACLOptionCategoryEditor::class;
 }
index bd2af37bc220d1d1970b010a788dd060c6bd6248..4f8d4162031a62c379f46a9b13d0b7a1bcfc5c3a 100644 (file)
@@ -16,5 +16,5 @@ class ACPMenuItemAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acp\menu\item\ACPMenuItemEditor';
+       protected $className = ACPMenuItemEditor::class;
 }
index 9aa8d5e57d80ba14f581e0615bbb8ea1c5552371..b581c2b55fabaadb2c46ac6b2e0a48ec79ad384b 100644 (file)
@@ -16,5 +16,5 @@ class ACPSessionAccessLogAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acp\session\access\log\ACPSessionAccessLogEditor';
+       protected $className = ACPSessionAccessLogEditor::class;
 }
index 8cb33e17d8fa306d03fe597b8ed29c74c2f55058..9a1d1a21fbfa91e2c4915807adb24624febaa789 100644 (file)
@@ -16,5 +16,5 @@ class ACPSessionLogAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acp\session\log\ACPSessionLogEditor';
+       protected $className = ACPSessionLogEditor::class;
 }
index d07f81da3d5889f8c70ce15ec19da3f611d17fd1..f1a20bc434a61bcd07099dd9a80549a57880a6e0 100644 (file)
@@ -16,7 +16,7 @@ class ACPTemplateAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\acp\template\ACPTemplateEditor';
+       protected $className = ACPTemplateEditor::class;
        
        /**
         * @inheritDoc
index 7185725d0247317ec37e394c9a530bac235ca16c..21d68fa704e136166812bc3d03603d3c952a646c 100644 (file)
@@ -22,7 +22,7 @@ class BBCodeAction extends AbstractDatabaseObjectAction implements IToggleAction
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\bbcode\BBCodeEditor';
+       protected $className = BBCodeEditor::class;
        
        /**
         * @inheritDoc
index 5c20b2a8006d9ad2f9fad481f4863afda9a8adff..203d423f850c75c0bb1c2a6508fcdcbc4a6da12c 100644 (file)
@@ -16,5 +16,5 @@ class BBCodeAttributeAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\bbcode\attribute\BBCodeAttributeEditor';
+       protected $className = BBCodeAttributeEditor::class;
 }
index 68af603c996a8b5cf7b06297c49354944a11c01a..c18b5a37207b14744f395a43f44ce9d80075d3f6 100644 (file)
@@ -16,7 +16,7 @@ class BBCodeMediaProviderAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\bbcode\media\provider\BBCodeMediaProviderEditor';
+       protected $className = BBCodeMediaProviderEditor::class;
        
        /**
         * @inheritDoc
index e40d92cf7b9666c0e838a173b29aa49e90fb1519..bdb93cd9e2b2021fd82f6192a407ac16e3157322 100644 (file)
@@ -168,7 +168,7 @@ class CategoryNodeTree implements \IteratorAggregate {
                
                // decorate category if necessary
                $decoratorClassName = call_user_func([$this->nodeClassName, 'getBaseClass']);
-               if ($decoratorClassName != 'wcf\data\category\Category') {
+               if ($decoratorClassName != Category::class) {
                        $category = new $decoratorClassName($category);
                }
                
index 02f230f8ecbf0872db448d0cc0ecfe4fbca893f6..182369dd65a899f0fedb7999a3c38e6c4ad26ccf 100644 (file)
@@ -16,5 +16,5 @@ class ClipboardActionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\clipboard\action\ClipboardActionEditor';
+       protected $className = ClipboardActionEditor::class;
 }
index 408db25264f01bcd353ac963789ba1a9145cb1e0..e90998826dce26444d18b88d7dd9451298f99b49 100644 (file)
@@ -31,7 +31,7 @@ class CommentResponseAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\comment\response\CommentResponseEditor';
+       protected $className = CommentResponseEditor::class;
        
        /**
         * comment object
index c9d4fac86a7370aa8894ed089e7d94cc8510506a..497bd0061fedb0dc79aabd54a5be1d408ed9bb12 100644 (file)
@@ -16,5 +16,5 @@ class CoreObjectAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\core\object\CoreObjectEditor';
+       protected $className = CoreObjectEditor::class;
 }
index 21d9d678575a1377166188f02ec9ceade1502b42..52f471384a66e0c0c07bf35aeff013019b2a012c 100644 (file)
@@ -23,7 +23,7 @@ class CronjobAction extends AbstractDatabaseObjectAction implements IToggleActio
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\cronjob\CronjobEditor';
+       protected $className = CronjobEditor::class;
        
        /**
         * @inheritDoc
index 9bf321638d9e18cced324886f6be00d3d6412667..6b4260684680a5500d48959bfa7757fef2c7d6c5 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\data\cronjob;
+use wcf\data\language\category\LanguageCategory;
 use wcf\data\language\LanguageList;
 use wcf\data\DatabaseObjectEditor;
 use wcf\data\IEditableCachedObject;
@@ -84,7 +85,7 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec
                                WHERE   languageCategory = ?";
                        $statement = WCF::getDB()->prepareStatement($sql);
                        $statement->execute(['wcf.acp.cronjob']);
-                       $languageCategory = $statement->fetchObject('wcf\data\language\category\LanguageCategory');
+                       $languageCategory = $statement->fetchObject(LanguageCategory::class);
                        
                        $languages = new LanguageList();
                        $languages->readObjects();
index 8f77de50dcfe063e2717ac800480405dd48af694..ee073a7296bbd5131cbdc473f3f56d176c01eef5 100644 (file)
@@ -17,7 +17,7 @@ class CronjobLogAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\cronjob\log\CronjobLogEditor';
+       protected $className = CronjobLogEditor::class;
        
        /**
         * @inheritDoc
index 5b6f268575ad1b8cf6a121ff16b68adfcecd73c8..a50448911a3f691093c046a09ce8e34c5fb088c4 100644 (file)
@@ -18,7 +18,7 @@ class EditHistoryEntryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\edit\history\entry\EditHistoryEntryEditor';
+       protected $className = EditHistoryEntryEditor::class;
        
        /**
         * Checks permissions to revert.
index 86f5f94ff6ff95277debb5cb8a18182c2c5d0845..83dda923cdc839b35b61ec5174f7d49423d85611 100644 (file)
@@ -16,5 +16,5 @@ class EventListenerAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\event\listener\EventListenerEditor';
+       protected $className = EventListenerEditor::class;
 }
index b5d1e23632ca54023cebd29707fa1a6bfcb5e5d6..8847db49708ad9ee539c9d262b6b96d6f969b9d3 100644 (file)
@@ -17,7 +17,7 @@ class LabelGroupAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\label\group\LabelGroupEditor';
+       protected $className = LabelGroupEditor::class;
        
        /**
         * @inheritDoc
index 8c9a126e7b12443e02f8b1dc9f495c133d242070..ff42f99d59bcb8b86fefb58a4a0efb3ba5ffae04 100644 (file)
@@ -17,7 +17,7 @@ class LanguageAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\language\LanguageEditor';
+       protected $className = LanguageEditor::class;
        
        /**
         * @inheritDoc
index 0227e39541f22df82cf67c02f21ab9818ceaa268..812475fd17ea2df3bb926f53894858395aa5867a 100644 (file)
@@ -16,7 +16,7 @@ class LanguageCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\language\category\LanguageCategoryEditor';
+       protected $className = LanguageCategoryEditor::class;
        
        /**
         * @inheritDoc
index 8b276b6a2d5fb48fa31f0c0847315f85d951372b..50fedbd656683acb869eee6177eba3e60da88581 100644 (file)
@@ -20,7 +20,7 @@ class LanguageItemAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\language\item\LanguageItemEditor';
+       protected $className = LanguageItemEditor::class;
        
        /**
         * @inheritDoc
index 13b2d27e4fb418586981b027eb6b7521ebcff802..f39d835bd970947fcd0fc5d22b94fb7d4c2bf764 100644 (file)
@@ -33,7 +33,7 @@ class LikeAction extends AbstractDatabaseObjectAction implements IGroupedUserLis
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\like\LikeEditor';
+       protected $className = LikeEditor::class;
        
        /**
         * likeable object
index f3916c93f219a139d0a96f9bdb91c8ae70b14064..51811f9e51c167b1ed66efc847b7afc1f8d39e17 100644 (file)
@@ -26,7 +26,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\moderation\queue\ModerationQueueEditor';
+       protected $className = ModerationQueueEditor::class;
        
        /**
         * moderation queue editor object
index c9304bf9612f5c9400af9640408435deb21d6432..6073861bcd0304be4d172705160423c3f3eea85d 100644 (file)
@@ -16,5 +16,5 @@ class ObjectTypeAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\object\type\ObjectTypeEditor';
+       protected $className = ObjectTypeEditor::class;
 }
index cdf3482fc3401d31ec3257f46bc618cf7a7832f0..433d578c873db3220fca08e3a5c6954d204ff378 100644 (file)
@@ -16,5 +16,5 @@ class ObjectTypeDefinitionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\object\type\definition\ObjectTypeDefinitionEditor';
+       protected $className = ObjectTypeDefinitionEditor::class;
 }
index e8de4d02a4511bd6b75628496dc33177d15a14a9..810fb04357d8b63c7672769ab1955b1ac2aad305 100644 (file)
@@ -16,7 +16,7 @@ class OptionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\option\OptionEditor';
+       protected $className = OptionEditor::class;
        
        /**
         * @inheritDoc
index 24dff298843b02af31061c95895c9b2c9b482bd1..d586c65fdf2489b268b84ac43e0c694c278f4857 100644 (file)
@@ -16,7 +16,7 @@ class OptionCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\option\category\OptionCategoryEditor';
+       protected $className = OptionCategoryEditor::class;
        
        /**
         * @inheritDoc
index ee59f60b91e5396ed22ebbd1b1376d5d067ea6aa..bf53eda8f17a0d7d083af11d316986181d36786f 100644 (file)
@@ -23,7 +23,7 @@ class PackageAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\PackageEditor';
+       protected $className = PackageEditor::class;
        
        /**
         * @inheritDoc
index 56876937106b7b58b8e115367500ddb5f2a9b559..6d6642f78e5a193bc92ee709deeb0c589c27c82f 100644 (file)
@@ -16,5 +16,5 @@ class PackageInstallationPluginAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\installation\plugin\PackageInstallationPluginEditor';
+       protected $className = PackageInstallationPluginEditor::class;
 }
index e883d956524d7e29890f8f403da9cdbd72ebf04d..24055a8a01c1e8b0ec566fa12e8cff4b7fd3395f 100644 (file)
@@ -21,7 +21,7 @@ class PackageInstallationQueueAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\installation\queue\PackageInstallationQueueEditor';
+       protected $className = PackageInstallationQueueEditor::class;
        
        /**
         * queue of the canceled installation
index 8b17951e01a6a7f42e092bcfaf8a7b644b86f22a..9f51eee7fbfeea5560522065b23a98eba1ffa617 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\data\package\update;
 use wcf\data\package\installation\queue\PackageInstallationQueue;
 use wcf\data\package\installation\queue\PackageInstallationQueueEditor;
 use wcf\data\package\update\server\PackageUpdateServer;
+use wcf\data\package\update\version\PackageUpdateVersion;
 use wcf\data\package\Package;
 use wcf\data\search\Search;
 use wcf\data\search\SearchEditor;
@@ -30,7 +31,7 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\update\PackageUpdateEditor';
+       protected $className = PackageUpdateEditor::class;
        
        /**
         * @inheritDoc
@@ -227,8 +228,8 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
                                        continue;
                                }
                                
-                               uasort($versionTypes['accessible'], ['wcf\data\package\Package', 'compareVersion']);
-                               uasort($versionTypes['existing'], ['wcf\data\package\Package', 'compareVersion']);
+                               uasort($versionTypes['accessible'], [Package::class, 'compareVersion']);
+                               uasort($versionTypes['existing'], [Package::class, 'compareVersion']);
                                
                                $accessibleVersion = array_slice($versionTypes['accessible'], -1, 1, true);
                                $existingVersion = array_slice($versionTypes['existing'], -1, 1, true);
@@ -249,8 +250,8 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
                                continue;
                        }
                        
-                       uksort($accessible, ['wcf\data\package\Package', 'compareVersion']);
-                       uksort($existing, ['wcf\data\package\Package', 'compareVersion']);
+                       uksort($accessible, [Package::class, 'compareVersion']);
+                       uksort($existing, [Package::class, 'compareVersion']);
                        
                        $accessible = array_pop($accessible);
                        $existing = array_pop($existing);
@@ -327,7 +328,7 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
                $statement = WCF::getDB()->prepareStatement($sql, 20, ($this->parameters['pageNo'] - 1) * 20);
                $statement->execute($conditions->getParameters());
                $packageUpdates = $packageVersionIDs = [];
-               while ($packageUpdate = $statement->fetchObject('wcf\data\package\update\PackageUpdate')) {
+               while ($packageUpdate = $statement->fetchObject(PackageUpdate::class)) {
                        $packageUpdates[$packageUpdate->packageUpdateID] = new ViewablePackageUpdate($packageUpdate);
                        
                        // collect package version ids
@@ -346,7 +347,7 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction {
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute($conditions->getParameters());
                $updateVersions = [];
-               while ($updateVersion = $statement->fetchObject('wcf\data\package\update\version\PackageUpdateVersion')) {
+               while ($updateVersion = $statement->fetchObject(PackageUpdateVersion::class)) {
                        $updateVersions[$updateVersion->packageUpdateVersionID] = $updateVersion;
                }
                
index ef7ca93a94ebe2e037b016e41db497332fbcfd46..e924c53f0124f82192e6ad8714a099c49b8cbf6e 100644 (file)
@@ -17,7 +17,7 @@ class PackageUpdateServerAction extends AbstractDatabaseObjectAction implements
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\update\server\PackageUpdateServerEditor';
+       protected $className = PackageUpdateServerEditor::class;
        
        /**
         * @inheritDoc
index 0dae7d368f7d68f33e03dfcc5eea46dde4f46494..9c659c659a52e16d1dc3a6f5d408f5394ee954e5 100644 (file)
@@ -16,5 +16,5 @@ class PackageUpdateVersionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\package\update\version\PackageUpdateVersionEditor';
+       protected $className = PackageUpdateVersionEditor::class;
 }
index fc63c5d36157c01e5d0740d99789508b94185053..b35417e3d61f9b0ff665fe6cefb4e4cf6c87d8c7 100644 (file)
@@ -29,7 +29,7 @@ class PollAction extends AbstractDatabaseObjectAction implements IGroupedUserLis
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\poll\PollEditor';
+       protected $className = PollEditor::class;
        
        /**
         * poll object
index 742c2adf2d1c912547d5385e9423b07431b92735..a2b29f10423470afb9b4114c712fa2b1d43aacb0 100644 (file)
@@ -16,5 +16,5 @@ class PollOptionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\poll\option\PollOptionEditor';
+       protected $className = PollOptionEditor::class;
 }
index 0c56d5a71a36b734d9be9a30eb9671ee50e84cfc..2d0b21206e0e7cbe435bdde0b1b73fbc4208012f 100644 (file)
@@ -16,5 +16,5 @@ class SearchAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\search\SearchEditor';
+       protected $className = SearchEditor::class;
 }
index f0b7477220d576d7e8ab35232f7db0323d60ff9f..4e81403e511815b4da2b3e6ec052d3c41559a456 100644 (file)
@@ -18,7 +18,7 @@ class SearchKeywordAction extends AbstractDatabaseObjectAction implements ISearc
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\search\keyword\SearchKeywordEditor';
+       protected $className = SearchKeywordEditor::class;
        
        /**
         * @inheritDoc
index f1eeb518e0c16932a87dbee546352386a3315f46..5358760c517d2eabfd2fb2376719bbe32bcf9a0c 100644 (file)
@@ -25,7 +25,7 @@ class SessionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\session\SessionEditor';
+       protected $className = SessionEditor::class;
        
        /**
         * list of data values returned upon a keep alive request
index 1c863170ca40bc5f75390d6a04463f7ec351672a..7868b2c1a5beacbdeb25a1ae530be1caa14c651a 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\DatabaseObject;
 use wcf\data\TDatabaseObjectOptions;
 use wcf\data\TDatabaseObjectPermissions;
 use wcf\system\exception\SystemException;
+use wcf\system\sitemap\ISitemapProvider;
 
 /**
  * Represents a sitemap entry.
@@ -56,8 +57,8 @@ class Sitemap extends DatabaseObject {
                                throw new SystemException("Unable to find class '".$this->className."' for sitemap '".$this->sitemapName."'");
                        }
                        
-                       if (!is_subclass_of($this->className, 'wcf\system\sitemap\ISitemapProvider')) {
-                               throw new SystemException("'".$this->className."' does not implement 'wcf\system\sitemap\ISitemapProvider'");
+                       if (!is_subclass_of($this->className, ISitemapProvider::class)) {
+                               throw new SystemException("'".$this->className."' does not implement '".ISitemapProvider::class."'");
                        }
                        
                        $this->sitemapObj = new $this->className();
index 154efe149a6ccc0bd7fbbbc38945e68f87fff5aa..4105973227b458d75ee8f9a8c6a0cf58e51ea71a 100644 (file)
@@ -20,7 +20,7 @@ class SmileyAction extends AbstractDatabaseObjectAction implements ISortableActi
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\smiley\SmileyEditor';
+       protected $className = SmileyEditor::class;
        
        /**
         * @inheritDoc
index 5e0a5e88b7b1157f12dea80b51f13f47236be0b3..2a442fd5776b9f2fa3ee6ec3cca729a58e78d64e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\data\smiley\category;
+use wcf\data\category\CategoryEditor;
 use wcf\data\AbstractDatabaseObjectAction;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\WCF;
@@ -18,7 +19,7 @@ class SmileyCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\category\CategoryEditor';
+       protected $className = CategoryEditor::class;
        
        /**
         * @inheritDoc
index 88e32228b96704e2c2f4703835afe804256fe905..0999c04ddf90d9e02389e6ef057aadeb7afe6661 100644 (file)
@@ -16,5 +16,5 @@ class SpiderAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\spider\SpiderEditor';
+       protected $className = SpiderEditor::class;
 }
index 344c09aa222eb8dcfc3bd5c1370f3f013e90473f..668d6af3fdc231088227f16561d2c3964040af7b 100644 (file)
@@ -20,7 +20,7 @@ class StatDailyAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\stat\daily\StatDailyEditor';
+       protected $className = StatDailyEditor::class;
        
        /**
         * Validates the getData action.
index e8620110aae67b1c17af393ceec81c9a70bc2ac4..394be29d25f252e9a1949bc2be7df44d36b4f661 100644 (file)
@@ -35,7 +35,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction,
        /**
         * @inheritdoc
         */
-       protected $className = 'wcf\data\style\StyleEditor';
+       protected $className = StyleEditor::class;
        
        /**
         * @inheritdoc
index 2f55bd42a8c87e7674b183f935782c2f8d69e29d..0f1c17c00d31c864268f7f181e29c74505a3b637 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\data\style;
+use wcf\data\language\category\LanguageCategory;
 use wcf\data\language\LanguageList;
 use wcf\data\package\Package;
 use wcf\data\package\PackageCache;
@@ -559,7 +560,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                                WHERE   languageCategory = ?";
                        $statement2 = WCF::getDB()->prepareStatement($sql);
                        $statement2->execute(['wcf.style']);
-                       $languageCategory = $statement2->fetchObject('wcf\data\language\category\LanguageCategory');
+                       $languageCategory = $statement2->fetchObject(LanguageCategory::class);
                }
                else {
                        $languageCategory = LanguageFactory::getInstance()->getCategory('wcf.style');
index 005f5b01c0d10a3a5c368da7ab6d6cb48786a2a5..f72361a3ff83f4a786c1b75fc952bfe5f57f0848 100644 (file)
@@ -16,5 +16,5 @@ class StyleVariableAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\style\variable\StyleVariableEditor';
+       protected $className = StyleVariableEditor::class;
 }
index 2f34bb17ad22175463e8ae109c0332aa82039a64..e62954cf894c5574a5e35895b2dac698ce9f96fc 100644 (file)
@@ -26,7 +26,7 @@ class TagAction extends AbstractDatabaseObjectAction implements ISearchAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\tag\TagEditor';
+       protected $className = TagEditor::class;
        
        /**
         * @inheritDoc
index 77910aff9e55b0596440fe17f0a0ea619fdeaf71..e2c7a1bd21a5ce1e7d6e40b737c228ac1ff6e144 100644 (file)
@@ -17,7 +17,7 @@ class TemplateAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\template\TemplateEditor';
+       protected $className = TemplateEditor::class;
        
        /**
         * @inheritDoc
index e5ad95bbc41e23a57da669cd0d41507b5aedb2d5..7ffcb30073b88f50cf7b6a4cba44b55472078ca2 100644 (file)
@@ -18,7 +18,7 @@ class TemplateList extends DatabaseObjectList {
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\template\Template';
+       public $className = Template::class;
        
        /**
         * Creates a new TemplateList object.
index 7bccd08e0c773c2ac13c1fbdc3fea211b4cb03dc..a1a31256d93d608274c12cdfdb0535e1657ab5c4 100644 (file)
@@ -16,7 +16,7 @@ class TemplateGroupAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\template\group\TemplateGroupEditor';
+       protected $className = TemplateGroupEditor::class;
        
        /**
         * @inheritDoc
index 073d82a6b1cc6c7a7c88938cd8ddfb86c1138611..2ece26cb4b11704a52f46acb6b3ed02f4864bf7f 100644 (file)
@@ -16,5 +16,5 @@ class TemplateListenerAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\template\listener\TemplateListenerEditor';
+       protected $className = TemplateListenerEditor::class;
 }
index 0646cb3fb89cc89728115c2a04c945c7a970cfd6..cb4fa4714e5ab16ffd525b3feed48f98cc3f927d 100644 (file)
@@ -19,7 +19,7 @@ class UserFollowingAction extends UserFollowAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\follow\UserFollowEditor';
+       protected $className = UserFollowEditor::class;
        
        /**
         * @inheritDoc
index 1da52ece5aa39fd0d6fea03ca081896ba4e31f05..154576c7271ffca758a737353c73996ae07273db 100644 (file)
@@ -21,7 +21,7 @@ class UserGroupAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\user\group\UserGroupEditor';
+       public $className = UserGroupEditor::class;
        
        /**
         * editor object for the copied user group
index 3e61654dd1df9bd1f1b2481cd63bb855ec2663ec..c729d0ad179b442daa01fa8a55f1169cecae2601 100644 (file)
@@ -18,7 +18,7 @@ class UserGroupOptionAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\group\option\UserGroupOptionEditor';
+       protected $className = UserGroupOptionEditor::class;
        
        /**
         * Updates option values for given option id.
index 1349a37f7f693a22f23b48b08e88a25de67d360a..766c160c52dfd280bddaadb62781d03ef42dcbc9 100644 (file)
@@ -16,5 +16,5 @@ class UserGroupOptionCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\group\option\category\UserGroupOptionCategoryEditor';
+       protected $className = UserGroupOptionCategoryEditor::class;
 }
index 3d3f6d5af7277dd15496d99cded80a327f0a5c31..4959be464876b75b5b91e1533ac7f88a3a85967b 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 namespace wcf\data\user\ignore;
+use wcf\data\user\User;
+use wcf\data\user\UserProfile;
 
 /**
  * Represents a list of ignored users.
@@ -15,17 +17,17 @@ class ViewableUserIgnoreList extends UserIgnoreList {
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\user\ignore\UserIgnore';
+       public $className = UserIgnore::class;
        
        /**
         * @inheritDoc
         */
-       public $decoratorClassName = 'wcf\data\user\UserProfile';
+       public $decoratorClassName = UserProfile::class;
        
        /**
         * @inheritDoc
         */
-       public $objectClassName = 'wcf\data\user\User';
+       public $objectClassName = User::class;
        
        /**
         * @inheritDoc
index 0c1776e922ef8a88ee5041d1f7f7b73408892199..8ded1793cb0e30b22f95edeb74d7b83a3b6fbb8e 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\data\user\menu\item;
 use wcf\data\ProcessibleDatabaseObject;
 use wcf\system\menu\user\DefaultUserMenuItemProvider;
+use wcf\system\menu\user\IUserMenuItemProvider;
 use wcf\system\menu\ITreeMenuItem;
 use wcf\system\request\LinkHandler;
 use wcf\system\Regex;
@@ -43,7 +44,7 @@ class UserMenuItem extends ProcessibleDatabaseObject implements ITreeMenuItem {
        /**
         * @inheritDoc
         */
-       protected static $processorInterface = 'wcf\system\menu\user\IUserMenuItemProvider';
+       protected static $processorInterface = IUserMenuItemProvider::class;
        
        /**
         * application abbreviation
index 9bcbb8b564d2798deb4d6a1d74bc75b993c3b0f4..e31d3ac96068e0a66d48f35590f4621c647b4240 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\data\user\notification\event;
 use wcf\data\ProcessibleDatabaseObject;
 use wcf\data\TDatabaseObjectOptions;
 use wcf\data\TDatabaseObjectPermissions;
+use wcf\system\user\notification\event\IUserNotificationEvent;
 
 /**
  * Represents a user notification event.
@@ -41,5 +42,5 @@ class UserNotificationEvent extends ProcessibleDatabaseObject {
        /**
         * @inheritDoc
         */
-       protected static $processorInterface = 'wcf\system\user\notification\event\IUserNotificationEvent';
+       protected static $processorInterface = IUserNotificationEvent::class;
 }
index 385568e5e315768749db7a82db62aa6ceb083d02..15ae734a47a398f5fc42a26c407dff11c9db1de6 100644 (file)
@@ -18,7 +18,7 @@ class UserOptionAction extends AbstractDatabaseObjectAction implements IToggleAc
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\option\UserOptionEditor';
+       protected $className = UserOptionEditor::class;
        
        /**
         * @inheritDoc
index 38bf144ab412b14c7991fc8ba83e050f6f9c2231..95e0385eff092cdb61f09618c79ef244ef52999e 100644 (file)
@@ -16,7 +16,7 @@ class UserOptionCategoryAction extends AbstractDatabaseObjectAction {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\option\category\UserOptionCategoryEditor';
+       protected $className = UserOptionCategoryEditor::class;
        
        /**
         * @inheritDoc
index 8d195b2d2cc9d856386454a95af1ed5fee78e5c0..aba58b66aebd3be3d82f290144058da7d128d60b 100644 (file)
@@ -67,11 +67,11 @@ class UserProfileMenuItem extends DatabaseObject {
                        }
                        
                        if (!is_subclass_of($this->className, SingletonFactory::class)) {
-                               throw new SystemException("'".$this->className."' does not extend 'wcf\system\SingletonFactory'");
+                               throw new SystemException("'".$this->className."' does not extend '".SingletonFactory::class."'");
                        }
                        
                        if (!is_subclass_of($this->className, IUserProfileMenuContent::class)) {
-                               throw new SystemException("'".$this->className."' does not implement 'wcf\system\menu\user\profile\content\IUserProfileMenuContent'");
+                               throw new SystemException("'".$this->className."' does not implement '".IUserProfileMenuContent::class."'");
                        }
                        
                        $this->contentManager = call_user_func([$this->className, 'getInstance']);
index d296064ff86e6969508e2aa3ecf510bdf4494587..fe3796a3bc44855b63faf6927556fef97b25b25e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\page;
+use wcf\data\user\follow\UserFollowingList;
 use wcf\system\menu\user\UserMenu;
 use wcf\system\WCF;
 
@@ -22,7 +23,7 @@ class FollowingPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\follow\UserFollowingList';
+       public $objectListClassName = UserFollowingList::class;
        
        /**
         * @inheritDoc
index a8fb335102480709f822a08bfd366a3b939fb6b6..c59343defabd8a12a5b1057b488fbd78fc976799 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\page;
+use wcf\data\user\ignore\ViewableUserIgnoreList;
 use wcf\system\menu\user\UserMenu;
 use wcf\system\WCF;
 
@@ -22,7 +23,7 @@ class IgnoredUsersPage extends MultipleLinkPage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\ignore\ViewableUserIgnoreList';
+       public $objectListClassName = ViewableUserIgnoreList::class;
        
        /**
         * @inheritDoc
index 99fbd24681675545089c9ea2b1b6c9c1f4a2633f..4f405cb21699c103569f378dc03e0b1d110fd8bf 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\page;
 use wcf\data\search\Search;
 use wcf\data\user\User;
+use wcf\data\user\UserProfileList;
 use wcf\system\database\PostgreSQLDatabase;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\request\LinkHandler;
@@ -64,7 +65,7 @@ class MembersListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\user\UserProfileList';
+       public $objectListClassName = UserProfileList::class;
        
        /**
         * letter
index d57aa6a31e8de30892433e612050f02f0049ad47..c7b3a7aec768a639720971e6385140f2ebdc08c8 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\page;
 use wcf\data\moderation\queue\ModerationQueue;
+use wcf\data\moderation\queue\ViewableModerationQueueList;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\moderation\queue\ModerationQueueManager;
 use wcf\system\WCF;
@@ -57,7 +58,7 @@ class ModerationListPage extends SortablePage {
        /**
         * @inheritDoc
         */
-       public $objectListClassName = 'wcf\data\moderation\queue\ViewableModerationQueueList';
+       public $objectListClassName = ViewableModerationQueueList::class;
        
        /**
         * status bit
index b071f888bf0f4674cfcaf4e992e8e64bb3d13104..277ce1c45e185fb6d3e04a131a66b668e98da611 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\page;
+use wcf\data\DatabaseObjectList;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\SystemException;
 use wcf\system\WCF;
@@ -138,8 +139,8 @@ abstract class MultipleLinkPage extends AbstractPage {
                        throw new SystemException('DatabaseObjectList class name not specified.');
                }
                
-               if (!is_subclass_of($this->objectListClassName, 'wcf\data\DatabaseObjectList')) {
-                       throw new SystemException("'".$this->objectListClassName."' does not extend 'wcf\data\DatabaseObjectList'");
+               if (!is_subclass_of($this->objectListClassName, DatabaseObjectList::class)) {
+                       throw new SystemException("'".$this->objectListClassName."' does not extend '".DatabaseObjectList::class."'");
                }
                
                $this->objectList = new $this->objectListClassName();
index 09c3799f1f4831d91d71eb6969b6e5ac80091503..7c95ef4548eeef00c545981733d1806d611c8d9a 100644 (file)
@@ -142,7 +142,7 @@ class SearchResultPage extends MultipleLinkPage {
                        $objectType = SearchEngine::getInstance()->getObjectType($type);
                        if (($message = $objectType->getObject($objectID)) !== null) {
                                if (!($message instanceof ISearchResultObject)) {
-                                       throw new SystemException("'".get_class($message)."' does not implement 'wcf\data\search\ISearchResultObject'");
+                                       throw new SystemException("'".get_class($message)."' does not implement '".ISearchResultObject::class."'");
                                }
                                
                                $this->messages[] = $message;
index 1aa7cee0e3fbfd3e8dff2fb7469479921d0f554b..ee6d601a2abef8faf470b2f817dd6c87405810a7 100644 (file)
@@ -22,7 +22,7 @@ use Zend\Console\Getopt as ArgvParser;
 use Zend\Loader\StandardAutoloader as ZendLoader;
 
 // set exception handler
-set_exception_handler(['wcf\system\CLIWCF', 'handleCLIException']);
+set_exception_handler([CLIWCF::class, 'handleCLIException']);
 
 /**
  * Extends WCF class with functions for CLI.
@@ -83,7 +83,7 @@ class CLIWCF extends WCF {
                $this->initApplications();
                
                // the destructor registered in core.functions.php will only call the destructor of the parent class
-               register_shutdown_function(['wcf\system\CLIWCF', 'destruct']);
+               register_shutdown_function([self::class, 'destruct']);
                
                $this->initArgv();
                $this->initPHPLine();
index 6323ab85f95af20c61bfcab4009a33c85c0886c1..2fc6c4dcebf8e1bc0e6e006798f1f24e9f7652fe 100644 (file)
@@ -14,6 +14,7 @@ use wcf\system\box\BoxHandler;
 use wcf\system\cache\builder\CoreObjectCacheBuilder;
 use wcf\system\cache\builder\PackageUpdateCacheBuilder;
 use wcf\system\cronjob\CronjobScheduler;
+use wcf\system\database\MySQLDatabase;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\AJAXException;
 use wcf\system\exception\ErrorException;
@@ -299,7 +300,7 @@ class WCF {
                // get configuration
                $dbHost = $dbUser = $dbPassword = $dbName = '';
                $dbPort = 0;
-               $dbClass = 'wcf\system\database\MySQLDatabase';
+               $dbClass = MySQLDatabase::class;
                require(WCF_DIR.'config.inc.php');
                
                // create database connection
@@ -528,7 +529,7 @@ class WCF {
                self::$autoloadDirectories[$abbreviation] = $packageDir . 'lib/';
                
                $className = $abbreviation.'\system\\'.strtoupper($abbreviation).'Core';
-               if (class_exists($className) && is_subclass_of($className, 'wcf\system\application\IApplication')) {
+               if (class_exists($className) && is_subclass_of($className, IApplication::class)) {
                        // include config file
                        $configPath = $packageDir . PackageInstallationDispatcher::CONFIG_FILE;
                        
@@ -556,7 +557,7 @@ class WCF {
                }
                else {
                        unset(self::$autoloadDirectories[$abbreviation]);
-                       throw new SystemException("Unable to run '".$package->package."', '".$className."' is missing or does not implement 'wcf\system\application\IApplication'.");
+                       throw new SystemException("Unable to run '".$package->package."', '".$className."' is missing or does not implement '".IApplication::class."'.");
                }
                
                // register template path in ACP
@@ -719,8 +720,8 @@ class WCF {
                }
                
                if (class_exists($objectName)) {
-                       if (!(is_subclass_of($objectName, 'wcf\system\SingletonFactory'))) {
-                               throw new SystemException("class '".$objectName."' does not implement the interface 'SingletonFactory'");
+                       if (!(is_subclass_of($objectName, SingletonFactory::class))) {
+                               throw new SystemException("class '".$objectName."' does not implement the interface '".SingletonFactory::class."'");
                        }
                        
                        self::$coreObject[$className] = call_user_func([$objectName, 'getInstance']);
index a9950efbc26531c4234a982fe8f4123830d808e4..6ac9a25fbe37a1d978a01a4800a78e90731541a2 100644 (file)
@@ -8,6 +8,7 @@ use wcf\data\user\User;
 use wcf\data\user\UserAction;
 use wcf\system\cache\builder\LanguageCacheBuilder;
 use wcf\system\database\util\SQLParser;
+use wcf\system\database\MySQLDatabase;
 use wcf\system\exception\SystemException;
 use wcf\system\exception\UserInputException;
 use wcf\system\io\File;
@@ -93,7 +94,7 @@ class WCFSetup extends WCF {
         * @var string[][]
         */
        protected static $dbClasses = [
-               'MySQLDatabase' => ['class' => 'wcf\system\database\MySQLDatabase', 'minversion' => '5.1.17']//,                // MySQL 5.1.17+
+               'MySQLDatabase' => ['class' => MySQLDatabase::class, 'minversion' => '5.1.17']//,               // MySQL 5.1.17+
                //'PostgreSQLDatabase' => ['class' => 'wcf\system\database\PostgreSQLDatabase', 'minversion' => '8.2.0']        // PostgreSQL 8.2.0+
        ];
        
@@ -709,7 +710,7 @@ class WCFSetup extends WCF {
                                        }
                                }
                                // check innodb support
-                               if ($dbClass == 'wcf\system\database\MySQLDatabase') {
+                               if ($dbClass == MySQLDatabase::class) {
                                        $sql = "SHOW ENGINES";
                                        $statement = $db->prepareStatement($sql);
                                        $statement->execute();
index 115ed87dcb9b25a854825f0d693dd413b7510bd1..7559bae07f02b49a611189357d99812f8e64790e 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\system\application;
 use wcf\data\package\PackageCache;
 use wcf\system\exception\SystemException;
 use wcf\system\SingletonFactory;
+use wcf\system\WCF;
 
 /**
  * Abstract implementation of a community framework application.
@@ -98,6 +99,6 @@ abstract class AbstractApplication extends SingletonFactory implements IApplicat
         * @inheritDoc
         */
        public static function __callStatic($method, array $arguments) {
-               return call_user_func_array(['wcf\system\WCF', $method], $arguments);
+               return call_user_func_array([WCF::class, $method], $arguments);
        }
 }
index bf3d31c75f886e04159236b3ca012b76ecc3d62c..2f417ceb5c404c6e07f280da1e522b945e53341e 100644 (file)
@@ -57,7 +57,7 @@ class BackgroundQueueHandler extends SingletonFactory {
                if (!is_array($jobs)) $jobs = [$jobs];
                foreach ($jobs as $job) {
                        if (!($job instanceof AbstractBackgroundJob)) {
-                               throw new SystemException('$jobs contains an item that does not extend \wcf\system\background\job\AbstractBackgroundJob.');
+                               throw new SystemException('$jobs contains an item that does not extend \''.AbstractBackgroundJob::class.'\'.');
                        }
                }
                
index 024c474a9c4caaa705261faadf98febc4cd8b3f4..a6c15eaa40a834bb2a266cc4dd4a988c8242840a 100644 (file)
@@ -1,5 +1,19 @@
 <?php
 namespace wcf\system\bbcode;
+use wcf\system\bbcode\highlighter\BashHighlighter;
+use wcf\system\bbcode\highlighter\BrainfuckHighlighter;
+use wcf\system\bbcode\highlighter\CHighlighter;
+use wcf\system\bbcode\highlighter\DiffHighlighter;
+use wcf\system\bbcode\highlighter\HtmlHighlighter;
+use wcf\system\bbcode\highlighter\JavaHighlighter;
+use wcf\system\bbcode\highlighter\JsHighlighter;
+use wcf\system\bbcode\highlighter\PerlHighlighter;
+use wcf\system\bbcode\highlighter\PhpHighlighter;
+use wcf\system\bbcode\highlighter\PlainHighlighter;
+use wcf\system\bbcode\highlighter\PythonHighlighter;
+use wcf\system\bbcode\highlighter\SqlHighlighter;
+use wcf\system\bbcode\highlighter\TexHighlighter;
+use wcf\system\bbcode\highlighter\XmlHighlighter;
 use wcf\system\Regex;
 use wcf\system\WCF;
 use wcf\util\StringUtil;
@@ -50,7 +64,7 @@ class CodeBBCode extends AbstractBBCode {
                $this->mapAttributes($openingTag);
                
                // fetch highlighter-classname
-               $className = '\wcf\system\bbcode\highlighter\PlainHighlighter';
+               $className = PlainHighlighter::class;
                
                // no highlighting for strings over a certain size, to prevent DoS
                // this serves as a safety net in case one of the regular expressions
@@ -61,70 +75,70 @@ class CodeBBCode extends AbstractBBCode {
                                
                                switch (mb_substr($className, strlen('\wcf\system\bbcode\highlighter\\'))) {
                                        case 'ShellHighlighter':
-                                               $className = '\wcf\system\bbcode\highlighter\BashHighlighter';
+                                               $className = BashHighlighter::class;
                                        break;
                                        
                                        case 'C++Highlighter':
-                                               $className = '\wcf\system\bbcode\highlighter\CHighlighter';
+                                               $className = CHighlighter::class;
                                        break;
                                        
                                        case 'JavascriptHighlighter':
-                                               $className = '\wcf\system\bbcode\highlighter\JsHighlighter';
+                                               $className = JsHighlighter::class;
                                        break;
                                        
                                        case 'LatexHighlighter':
-                                               $className = '\wcf\system\bbcode\highlighter\TexHighlighter';
+                                               $className = TexHighlighter::class;
                                        break;
                                }
                        }
                        else {
                                // try to guess highlighter
                                if (mb_strpos($content, '<?php') !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\PhpHighlighter';
+                                       $className = PhpHighlighter::class;
                                }
                                else if (mb_strpos($content, '<html') !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\HtmlHighlighter';
+                                       $className = HtmlHighlighter::class;
                                }
                                else if (mb_strpos($content, '<?xml') === 0) {
-                                       $className = '\wcf\system\bbcode\highlighter\XmlHighlighter';
+                                       $className = XmlHighlighter::class;
                                }
                                else if (       mb_strpos($content, 'SELECT') === 0
                                                ||      mb_strpos($content, 'UPDATE') === 0
                                                ||      mb_strpos($content, 'INSERT') === 0
                                                ||      mb_strpos($content, 'DELETE') === 0) {
-                                       $className = '\wcf\system\bbcode\highlighter\SqlHighlighter';
+                                       $className = SqlHighlighter::class;
                                }
                                else if (mb_strpos($content, 'import java.') !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\JavaHighlighter';
+                                       $className = JavaHighlighter::class;
                                }
                                else if (       mb_strpos($content, "---") !== false
                                                &&      mb_strpos($content, "\n+++") !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\DiffHighlighter';
+                                       $className = DiffHighlighter::class;
                                }
                                else if (mb_strpos($content, "\n#include ") !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\CHighlighter';
+                                       $className = CHighlighter::class;
                                }
                                else if (mb_strpos($content, '#!/usr/bin/perl') === 0) {
-                                       $className = '\wcf\system\bbcode\highlighter\PerlHighlighter';
+                                       $className = PerlHighlighter::class;
                                }
                                else if (mb_strpos($content, 'def __init__(self') !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\PythonHighlighter';
+                                       $className = PythonHighlighter::class;
                                }
                                else if (Regex::compile('^#!/bin/(ba|z)?sh')->match($content)) {
-                                       $className = '\wcf\system\bbcode\highlighter\BashHighlighter';
+                                       $className = BashHighlighter::class;
                                }
                                else if (mb_strpos($content, '\\documentclass') !== false) {
-                                       $className = '\wcf\system\bbcode\highlighter\TexHighlighter';
+                                       $className = TexHighlighter::class;
                                }
                                else if (Regex::compile('[-\\+\\.,\\[\\]\\>\\<]{9}')->match($content)) {
                                        // 9 times a brainfuck char in a row -> seems to be brainfuck
-                                       $className = '\wcf\system\bbcode\highlighter\BrainfuckHighlighter';
+                                       $className = BrainfuckHighlighter::class;
                                }
                        }
                }
                
                if (!class_exists($className)) {
-                       $className = '\wcf\system\bbcode\highlighter\PlainHighlighter';
+                       $className = PlainHighlighter::class;
                }
                
                if ($parser->getOutputType() == 'text/html') {
index e910f512ed3a575537e814c4159ca56f188d17ee..d4fd5b5745db9871f01b817b560416712966b432 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\acp\form\OptionForm;
 use wcf\data\acp\menu\item\ACPMenuItem;
 use wcf\data\acp\menu\item\ACPMenuItemList;
 use wcf\data\option\category\OptionCategory;
@@ -49,7 +50,7 @@ class ACPMenuCacheBuilder extends AbstractCacheBuilder {
                        $data['wcf.acp.menu.link.option.category'][] = new ACPMenuItem(null, [
                                'menuItem' => 'wcf.acp.option.category.'.$optionCategory->categoryName,
                                'parentMenuItem' => 'wcf.acp.menu.link.option.category',
-                               'menuItemController' => 'wcf\acp\form\OptionForm',
+                               'menuItemController' => OptionForm::class,
                                'permissions' => $optionCategory->permissions,
                                'optionCategoryID' => $optionCategory->categoryID,
                                'options' => $optionCategory->options
index 29119e7579930691e97190b5824dd1db801984dd..c7acb9adb7b8742907b3b41232e3e9d8163c28e5 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\event\listener\EventListener;
 use wcf\system\event\EventHandler;
 use wcf\system\WCF;
 
@@ -36,7 +37,7 @@ class EventListenerCacheBuilder extends AbstractCacheBuilder {
                        ORDER BY        niceValue ASC, listenerClassName ASC";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute();
-               while ($eventListener = $statement->fetchObject('wcf\data\event\listener\EventListener')) {
+               while ($eventListener = $statement->fetchObject(EventListener::class)) {
                        $eventNames = $eventListener->getEventNames();
                        
                        if (!$eventListener->inherit) {
index afb0a32bcb304c9aa2c89950b746d4c8d145d6f0..920dd82dc5a0e390a528a71d1d8a7e813e4cef8d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\cache\builder;
 use wcf\data\option\category\OptionCategory;
+use wcf\data\option\Option;
 use wcf\system\WCF;
 
 /**
@@ -18,7 +19,7 @@ class OptionCacheBuilder extends AbstractCacheBuilder {
         * option class name
         * @var string
         */
-       protected $optionClassName = 'wcf\data\option\Option';
+       protected $optionClassName = Option::class;
        
        /**
         * database table name
index da7358ba9765e0e6b9a0731d37d3fcc69d928193..56b1d33a8fbd1d1ab9b67475c72705105de34bc3 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\smiley\Smiley;
 use wcf\system\WCF;
 
 /**
@@ -25,7 +26,7 @@ class SmileyCacheBuilder extends AbstractCacheBuilder {
                        ORDER BY        showOrder";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute();
-               while ($object = $statement->fetchObject('wcf\data\smiley\Smiley')) {
+               while ($object = $statement->fetchObject(Smiley::class)) {
                        $object->smileyCodes = $object->getAliases();
                        $object->smileyCodes[] = $object->smileyCode;
                        
index 01ce3059ab2a15e9f8770a688063046f24e0c5af..95741fbb08e03b68a6a0ebfc52b27fbe7027b48d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\user\group\option\UserGroupOption;
 
 /**
  * Caches user group options and categories
@@ -15,7 +16,7 @@ class UserGroupOptionCacheBuilder extends OptionCacheBuilder {
        /**
         * @inheritDoc
         */
-       protected $optionClassName = 'wcf\data\user\group\option\UserGroupOption';
+       protected $optionClassName = UserGroupOption::class;
        
        /**
         * @inheritDoc
index 96cf0306164a4d97748e4c4e964f6bd50bda21ff..313d972b63054cb177f1619d326a45a0138f0b51 100644 (file)
@@ -97,8 +97,8 @@ class UserGroupPermissionCacheBuilder extends AbstractCacheBuilder {
                        if (!class_exists($className)) {
                                throw new SystemException("unable to find class '".$className."'");
                        }
-                       if (!is_subclass_of($className, 'wcf\system\option\user\group\IUserGroupOptionType')) {
-                               throw new SystemException("'".$className."' does not implement 'wcf\system\option\user\group\IUserGroupOptionType'");
+                       if (!is_subclass_of($className, IUserGroupOptionType::class)) {
+                               throw new SystemException("'".$className."' does not implement '".IUserGroupOptionType::class."'");
                        }
                        
                        // create instance
index 6149f868119d159c1dd1c4bfcfd265d767b8de78..e236b4422c20bbbe5c081f80cb20c27b399b9d1d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\cache\builder;
 use wcf\data\user\menu\item\UserMenuItem;
+use wcf\form\SettingsForm;
 use wcf\system\WCF;
 
 /**
@@ -38,7 +39,7 @@ class UserMenuCacheBuilder extends AbstractCacheBuilder {
                                'packageID' => $row['packageID'],
                                'menuItem' => 'wcf.user.option.category.'.$row['categoryName'],
                                'parentMenuItem' => 'wcf.user.menu.settings',
-                               'menuItemController' => 'wcf\form\SettingsForm',
+                               'menuItemController' => SettingsForm::class,
                                'menuItemLink' => ($categoryShortName != 'general' ? 'category='.$categoryShortName : ''),
                                'permissions' => $row['permissions'],
                                'options' => $row['options']
index 25f2ab0fa8e2a4fa1f3cea82d1c6e7fb5e29fd19..6ca556a3671bc6c7b4a8c0295581a43496c4c7c1 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\user\option\UserOption;
 
 /**
  * Caches user options and categories
@@ -15,7 +16,7 @@ class UserOptionCacheBuilder extends OptionCacheBuilder {
        /**
         * @inheritDoc
         */
-       protected $optionClassName = 'wcf\data\user\option\UserOption';
+       protected $optionClassName = UserOption::class;
        
        /**
         * @inheritDoc
index 83084f35df0850026a40490237e68e7b83917bad..5ba52353909be250039d3ebc2335afd1425353d8 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache\builder;
+use wcf\data\user\User;
 use wcf\system\WCF;
 
 /**
@@ -37,7 +38,7 @@ class UserStatsCacheBuilder extends AbstractCacheBuilder {
                        ORDER BY        userID DESC";
                $statement = WCF::getDB()->prepareStatement($sql, 1);
                $statement->execute();
-               $data['newestMember'] = $statement->fetchObject('wcf\data\user\User');
+               $data['newestMember'] = $statement->fetchObject(User::class);
                
                return $data;
        }
index 4ca2181a0cadf88685f8a3e89792e63028fdf5bf..42ca44c8d7d093ad24b732a54edf3d6dd98f169e 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\cli\command;
 use phpline\internal\Log;
+use wcf\system\worker\IWorker;
 use wcf\system\CLIWCF;
 use wcf\system\Regex;
 use wcf\util\CLIUtil;
@@ -77,7 +78,7 @@ class WorkerCLICommand implements IArgumentedCLICommand {
                        if (!$reflection->isInstantiable()) {
                                $invalid = true;
                        }
-                       else if (!is_subclass_of($class, 'wcf\system\worker\IWorker')) {
+                       else if (!is_subclass_of($class, IWorker::class)) {
                                $invalid = true;
                        }
                }
@@ -155,7 +156,7 @@ class WorkerCLICommand implements IArgumentedCLICommand {
                        $reflection = new \ReflectionClass($class);
                        if (!$reflection->isInstantiable()) continue;
                        
-                       if (!is_subclass_of($class, 'wcf\system\worker\IWorker')) {
+                       if (!is_subclass_of($class, IWorker::class)) {
                                Log::info('Invalid worker file: ', $worker);
                                continue;
                        }
index 28c6f80c643f716387864730ce70f1128c2f169f..c37b9b4fb4a691861f2027b31118239541ddd3a1 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\DatabaseObject;
 use wcf\system\cache\builder\ClipboardActionCacheBuilder;
 use wcf\system\cache\builder\ClipboardPageCacheBuilder;
+use wcf\system\clipboard\action\IClipboardAction;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\exception\SystemException;
 use wcf\system\SingletonFactory;
@@ -323,8 +324,8 @@ class ClipboardHandler extends SingletonFactory {
                        $actionClassName = $actionObject->actionClassName;
                        if (!isset($actions[$actionClassName])) {
                                // validate class
-                               if (!is_subclass_of($actionClassName, 'wcf\system\clipboard\action\IClipboardAction')) {
-                                       throw new SystemException("'".$actionClassName."' does not implement 'wcf\system\clipboard\action\IClipboardAction'");
+                               if (!is_subclass_of($actionClassName, IClipboardAction::class)) {
+                                       throw new SystemException("'".$actionClassName."' does not implement '".IClipboardAction::class."'");
                                }
                                
                                $actions[$actionClassName] = [
index 2490a97ff760596d40ea9758cb71cf93ccdb3d19..4be20cbe21af6b07622100f6194a760946209f93 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\clipboard\action;
 use wcf\data\clipboard\action\ClipboardAction;
+use wcf\data\tag\TagAction;
 use wcf\system\WCF;
 
 /**
@@ -57,7 +58,7 @@ class TagClipboardAction extends AbstractClipboardAction {
         * @inheritDoc
         */
        public function getClassName() {
-               return 'wcf\data\tag\TagAction';
+               return TagAction::class;
        }
        
        /**
index 6d6fe4dc88282c4015f63320cc6f69b87e5dc1de..6b69f7c99586b6c65e35b97bea8c33fd5c189926 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\system\clipboard\action;
 use wcf\data\clipboard\action\ClipboardAction;
 use wcf\data\user\group\UserGroup;
+use wcf\data\user\UserAction;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
@@ -75,7 +76,7 @@ class UserClipboardAction extends AbstractClipboardAction {
         * @inheritDoc
         */
        public function getClassName() {
-               return 'wcf\data\user\UserAction';
+               return UserAction::class;
        }
        
        /**
index 0589aec39acd4b8d431a742a18493ad05c63cf24..65a21d77374534548026ac813a611c5e1e0f876d 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\clipboard\action;
 use wcf\data\clipboard\action\ClipboardAction;
+use wcf\data\user\UserContentAction;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
@@ -44,7 +45,7 @@ class UserContentClipboardAction extends AbstractClipboardAction {
         * @inheritDoc
         */
        public function getClassName() {
-               return 'wcf\data\user\UserContentAction';
+               return UserContentAction::class;
        }
        
        /**
index 6ae71b538db2a75731557005afe8219814969f49..950c1834dfc5428f62fbc4f516521d4c79aaded2 100644 (file)
@@ -173,8 +173,8 @@ class CronjobScheduler extends SingletonFactory {
                }
                
                // verify class signature
-               if (!(is_subclass_of($className, 'wcf\system\cronjob\ICronjob'))) {
-                       throw new SystemException("'".$className."' does not implement 'wcf\system\cronjob\ICronjob'");
+               if (!(is_subclass_of($className, ICronjob::class))) {
+                       throw new SystemException("'".$className."' does not implement '".ICronjob::class."'");
                }
                
                // execute cronjob
index 5d462a91dc93f414a8a3ff56f185e4686a4d9c25..6ce0630fa78a9ba2dd063f93f8bb9a77188819e3 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\database;
 use wcf\system\benchmark\Benchmark;
+use wcf\system\database\editor\DatabaseEditor;
 use wcf\system\database\exception\DatabaseException as GenericDatabaseException;
 use wcf\system\database\exception\DatabaseQueryException;
 use wcf\system\database\exception\DatabaseTransactionException;
@@ -22,13 +23,13 @@ abstract class Database {
         * name of the class used for prepared statements
         * @var string
         */
-       protected $preparedStatementClassName = 'wcf\system\database\statement\PreparedStatement';
+       protected $preparedStatementClassName = PreparedStatement::class;
        
        /**
         * name of the database editor class
         * @var string
         */
-       protected $editorClassName = 'wcf\system\database\editor\DatabaseEditor';
+       protected $editorClassName = DatabaseEditor::class;
        
        /**
         * sql server hostname
index 59ba7ef8d3f1dc56f0a46b4ea8e9986835ec890a..a02b761c337aae3bcfadbeefa438d06fcb4ae8f9 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\database;
+use wcf\system\database\editor\MySQLDatabaseEditor;
 use wcf\system\database\exception\DatabaseException as GenericDatabaseException;
 
 /**
@@ -16,7 +17,7 @@ class MySQLDatabase extends Database {
        /**
         * @inheritDoc
         */
-       protected $editorClassName = 'wcf\system\database\editor\MySQLDatabaseEditor';
+       protected $editorClassName = MySQLDatabaseEditor::class;
        
        /**
         * @inheritDoc
index 41ab00ee8e23f7e56fe1cf2e516671a40d00dd04..04f66c7361c5ba22d1aa78d036ccaeb847f9b680 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\database;
+use wcf\system\database\editor\PostgreSQLDatabaseEditor;
 use wcf\system\database\exception\DatabaseException as GenericDatabaseException;
 use wcf\util\StringStack;
 
@@ -17,7 +18,7 @@ class PostgreSQLDatabase extends Database {
        /**
         * @inheritDoc
         */
-       protected $editorClassName = 'wcf\system\database\editor\PostgreSQLDatabaseEditor';
+       protected $editorClassName = PostgreSQLDatabaseEditor::class;
        
        /**
         * @inheritDoc
index cfd68ad34fd34718a4f65bd0ae1a3829c53dcb53..a3db6b589301b849c29aafe50752f8f0ddfb1d53 100644 (file)
@@ -113,10 +113,10 @@ class EventHandler extends SingletonFactory {
                                                                        if (!class_exists($eventListener->listenerClassName)) {
                                                                                throw new SystemException("Unable to find class '".$eventListener->listenerClassName."'");
                                                                        }
-                                                                       if (!is_subclass_of($eventListener->listenerClassName, 'wcf\system\event\listener\IParameterizedEventListener')) {
+                                                                       if (!is_subclass_of($eventListener->listenerClassName, IParameterizedEventListener::class)) {
                                                                                // legacy event listeners
-                                                                               if (!is_subclass_of($eventListener->listenerClassName, 'wcf\system\event\IEventListener')) {
-                                                                                       throw new SystemException("'".$eventListener->listenerClassName."' does not implement 'wcf\system\event\listener\IParameterizedEventListener'");
+                                                                               if (!is_subclass_of($eventListener->listenerClassName, IEventListener::class)) {
+                                                                                       throw new SystemException("'".$eventListener->listenerClassName."' does not implement '".IParameterizedEventListener::class."'");
                                                                                }
                                                                        }
                                                                        
@@ -200,10 +200,10 @@ class EventHandler extends SingletonFactory {
                                                if (!class_exists($eventListener->listenerClassName)) {
                                                        throw new SystemException("Unable to find class '".$eventListener->listenerClassName."'");
                                                }
-                                               if (!is_subclass_of($eventListener->listenerClassName, 'wcf\system\event\listener\IParameterizedEventListener')) {
+                                               if (!is_subclass_of($eventListener->listenerClassName, IParameterizedEventListener::class)) {
                                                        // legacy event listeners
-                                                       if (!is_subclass_of($eventListener->listenerClassName, 'wcf\system\event\IEventListener')) {
-                                                               throw new SystemException("'".$eventListener->listenerClassName."' does not implement 'wcf\system\event\listener\IParameterizedEventListener'");
+                                                       if (!is_subclass_of($eventListener->listenerClassName, IEventListener::class)) {
+                                                               throw new SystemException("'".$eventListener->listenerClassName."' does not implement '".IParameterizedEventListener::class."'");
                                                        }
                                                }
                                                
index a08c47156760b79c881a3a06a30836e06c099c39..1d3f75ecc9ebd10d430e0bda74648fe8917bf233 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\form\element;
+use wcf\util\StringUtil;
 
 /**
  * Provides a checkbox form element.
@@ -26,7 +27,7 @@ class MultipleSelectionFormElement extends AbstractNamedFormElement {
                        parent::setValue($value);
                }
                else {
-                       $this->value = array_map(['wcf\util\StringUtil', 'trim'], $value);
+                       $this->value = array_map([StringUtil::class, 'trim'], $value);
                }
        }
        
index 92fcea92fa6f724c5b7e4edbd28c4d58524a7fc4..186be4cca48a562dab972766185e46760e7c7874 100644 (file)
@@ -1,7 +1,9 @@
 <?php
 namespace wcf\system\image;
 use wcf\system\exception\SystemException;
+use wcf\system\image\adapter\GDImageAdapter;
 use wcf\system\image\adapter\ImageAdapter;
+use wcf\system\image\adapter\ImagickImageAdapter;
 use wcf\system\SingletonFactory;
 
 /**
@@ -20,8 +22,8 @@ class ImageHandler extends SingletonFactory {
         * @var string[]
         */
        protected $imageAdapters = [
-               'gd' => 'wcf\system\image\adapter\GDImageAdapter',
-               'imagick' => 'wcf\system\image\adapter\ImagickImageAdapter'
+               'gd' => GDImageAdapter::class,
+               'imagick' => ImagickImageAdapter::class
        ];
        
        /**
index e6adc260e2a48aab5bde628fffff0f56c01a2bc0..61701ee535f708eae664031a683d7da4c6a896c4 100644 (file)
@@ -18,7 +18,7 @@ class AbstractAttachmentImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\attachment\Attachment';
+       protected $className = Attachment::class;
        
        /**
         * object type id for attachments
index eaca3b785d6b15de01b3d8e83a847a52f691226e..b748d63132fa2c806ac48d39eaf42c9c8548a298 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\category\Category;
 use wcf\data\category\CategoryEditor;
 
 /**
@@ -16,7 +17,7 @@ class AbstractCategoryImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\category\Category';
+       protected $className = Category::class;
        
        /**
         * object type id for categories
index 4cadad506a18bb118d05174d5e27abb85274abb5..d67b32b203fa0bf6940a7a7fcbaded6e157c25c4 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\comment\Comment;
 use wcf\data\comment\CommentEditor;
 
 /**
@@ -16,7 +17,7 @@ class AbstractCommentImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\comment\Comment';
+       protected $className = Comment::class;
        
        /**
         * object type id for comments
index 7f11298bc2c57fb304cba2631113b7ff621e0aa7..a04ae63f1d381c720803f50a3fe1aef4f3878b7b 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\comment\response\CommentResponse;
 use wcf\data\comment\response\CommentResponseEditor;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class AbstractCommentResponseImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\comment\response\CommentResponse';
+       protected $className = CommentResponse::class;
        
        /**
         * object type name
index f4d4df35543c6a8f95d7c059a65296bd45f5a6a6..77c36c1ebd647f8ccc331bb9b037867940ecf4e0 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\like\Like;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class AbstractLikeImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\like\Like';
+       protected $className = Like::class;
        
        /**
         * object type id for likes
index 1802eae03674cafa94d9465ea62e7af8c2e9f3f2..3e3b35b7b8400a4d37e0e01b9ea3b1652e3ad1d4 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\poll\Poll;
 use wcf\data\poll\PollEditor;
 
 /**
@@ -16,7 +17,7 @@ class AbstractPollImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\poll\Poll';
+       protected $className = Poll::class;
        
        /**
         * object type id for poll
index e51f70daed07bfccea74b58be27fc7e566a5da68..2ff536fd8c64c8da4bc54080b0acdf1a3f041743 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\poll\option\PollOption;
 use wcf\data\poll\option\PollOptionEditor;
 
 /**
@@ -16,7 +17,7 @@ class AbstractPollOptionImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\poll\option\PollOption';
+       protected $className = PollOption::class;
        
        /**
         * option object type name
index 9fe76efac62eff256f87b2f7ac633fb7a1f0c687..db9b3884923bff331baffcd15d0cd2406d381eb4 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\user\object\watch\UserObjectWatch;
 use wcf\data\user\object\watch\UserObjectWatchEditor;
 use wcf\system\database\DatabaseException;
 
@@ -17,7 +18,7 @@ class AbstractWatchedObjectImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\object\watch';
+       protected $className = UserObjectWatch::class;
        
        /**
         * object type id for watched objects
index ba371f863e9179bd6e1265ef1cb1bcb00c56cecc..7fb732654849909e5937bacd8609c328eb756d6f 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\label\group\LabelGroup;
 use wcf\data\label\group\LabelGroupEditor;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class LabelGroupImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\label\group\LabelGroup';
+       protected $className = LabelGroup::class;
        
        /**
         * @inheritDoc
index 43e995fc4ab78bec2a752e29c134acd35a5c2d5c..755a8c5b33a6a3a6cecab30aae87ee0b0dd9bc03 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\label\Label;
 use wcf\data\label\LabelEditor;
 
 /**
@@ -16,7 +17,7 @@ class LabelImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\label\Label';
+       protected $className = Label::class;
        
        /**
         * @inheritDoc
index 931553143361f0a4617a1fc195259b2789f75410..6620624bd0b771c98d54e6e20953d72dc0afbc64 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\smiley\Smiley;
 use wcf\data\smiley\SmileyEditor;
 use wcf\system\WCF;
 use wcf\util\StringUtil;
@@ -18,11 +19,10 @@ class SmileyImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\smiley\Smiley';
+       protected $className = Smiley::class;
        
        /**
         * known smiley codes
-        * 
         * @var string[]
         */
        public $knownCodes = [];
index 129adb65f355b10aed45b5b89c1062db289daeab..89f6bb99dda276a3a90ba78c7ba66d94aa991a89 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\user\avatar\UserAvatar;
 use wcf\data\user\avatar\UserAvatarAction;
 use wcf\data\user\avatar\UserAvatarEditor;
 use wcf\system\exception\SystemException;
@@ -20,7 +21,7 @@ class UserAvatarImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\avatar\UserAvatar';
+       protected $className = UserAvatar::class;
        
        /**
         * @inheritDoc
index a8f3a1f8d9512d753b89f6b39512d59c3bb6ad6a..9da44442e684109f73bf6d84aee9da6b75118ab0 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\importer;
+use wcf\data\user\follow\UserFollow;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class UserFollowerImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\follow\UserFollow';
+       protected $className = UserFollow::class;
        
        /**
         * @inheritDoc
index fd8658b4049a5730885cbddbd42e100bd0aa89ed..495f2ffbea60d993705f135f4944e9bec2013a0f 100644 (file)
@@ -17,7 +17,7 @@ class UserGroupImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\group\UserGroup';
+       protected $className = UserGroup::class;
        
        /**
         * @inheritDoc
index bf1178e09eb9e666f7059ea2f7d0ab6b403e8c30..576152af1f62bec3bf21a644d9416568e4cc5043 100644 (file)
@@ -22,7 +22,7 @@ class UserImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\User';
+       protected $className = User::class;
        
        /**
         * ids of default notification events
index 956e8a46cebd5b0678f0be719a2a8f601f9a0737..37e71be609e54998d8a848c1efa35edfae8e9c45 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\system\importer;
 use wcf\data\user\option\category\UserOptionCategoryEditor;
 use wcf\data\user\option\category\UserOptionCategoryList;
+use wcf\data\user\option\UserOption;
 use wcf\data\user\option\UserOptionAction;
 use wcf\data\user\option\UserOptionEditor;
 use wcf\system\language\LanguageFactory;
@@ -22,7 +23,7 @@ class UserOptionImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\option\UserOption';
+       protected $className = UserOption::class;
        
        /**
         * language category id
index 426ce9af0a089ca01c0740cc9a470fcd244212fa..bff159bd87160b94c7e41d8163c1657e7a1b8a8f 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\importer;
 use wcf\data\user\group\UserGroup;
+use wcf\data\user\rank\UserRank;
 use wcf\data\user\rank\UserRankEditor;
 
 /**
@@ -17,7 +18,7 @@ class UserRankImporter extends AbstractImporter {
        /**
         * @inheritDoc
         */
-       protected $className = 'wcf\data\user\rank\UserRank';
+       protected $className = UserRank::class;
        
        /**
         * @inheritDoc
index 50f950d0cad428852666d44943b316f56fcfef18..58261ce9704d39bca796aedebe50a1a2957091c1 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\label;
+use wcf\data\label\group\LabelGroup;
 use wcf\data\label\group\ViewableLabelGroup;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\cache\builder\LabelCacheBuilder;
@@ -305,7 +306,7 @@ class LabelHandler extends SingletonFactory {
                        $data[$groupID] = $this->labelGroups['groups'][$groupID];
                }
                
-               uasort($data, ['\wcf\data\label\group\LabelGroup', 'sortLabelGroups']);
+               uasort($data, [LabelGroup::class, 'sortLabelGroups']);
                
                return $data;
        }
index 42c53308b2471c0fa70a2afaa932fe406bce7b3d..242757576031f5e7d6a9d98333926d1a2f7459ca 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\label\object;
+use wcf\data\label\group\LabelGroup;
 use wcf\data\label\group\ViewableLabelGroup;
 use wcf\system\exception\SystemException;
 use wcf\system\label\LabelHandler;
@@ -65,7 +66,7 @@ abstract class AbstractLabelObjectHandler extends SingletonFactory implements IL
                        $data[$groupID] = $this->labelGroups[$groupID];
                }
                
-               uasort($data, ['\wcf\data\label\group\LabelGroup', 'sortLabelGroups']);
+               uasort($data, [LabelGroup::class, 'sortLabelGroups']);
                
                return $data;
        }
index b775bbc0da553c4eed0b7af536f8a28be7089a6f..4977567595d1e1c1eed89725cb44b8f9085f1ddd 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\DatabaseObjectDecorator;
 use wcf\data\IAttachmentMessageQuickReplyAction;
 use wcf\data\IMessage;
 use wcf\data\IMessageQuickReplyAction;
+use wcf\data\IVisitableObjectAction;
 use wcf\system\bbcode\PreParser;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\SystemException;
@@ -135,8 +136,8 @@ class QuickReplyManager extends SingletonFactory {
                
                $this->container = new $containerClassName($parameters['objectID']);
                if (!empty($containerDecoratorClassName)) {
-                       if (!is_subclass_of($containerDecoratorClassName, 'wcf\data\DatabaseObjectDecorator')) {
-                               throw new SystemException("'".$containerDecoratorClassName."' does not extend 'wcf\data\DatabaseObjectDecorator'");
+                       if (!is_subclass_of($containerDecoratorClassName, DatabaseObjectDecorator::class)) {
+                               throw new SystemException("'".$containerDecoratorClassName."' does not extend '".DatabaseObjectDecorator::class."'");
                        }
                        
                        $this->container = new $containerDecoratorClassName($this->container);
@@ -234,7 +235,7 @@ class QuickReplyManager extends SingletonFactory {
                        }
                        
                        // update visit time (messages shouldn't occur as new upon next visit)
-                       if (is_subclass_of($containerActionClassName, 'wcf\data\IVisitableObjectAction')) {
+                       if (is_subclass_of($containerActionClassName, IVisitableObjectAction::class)) {
                                $containerAction = new $containerActionClassName([($this->container instanceof DatabaseObjectDecorator ? $this->container->getDecoratedObject() : $this->container)], 'markAsRead');
                                $containerAction->executeAction();
                        }
index ebeee961932cf0fa65da035e8e85259e37ad398b..a664f54bb4fb3c535d043c0dd6aacc4595e112ee 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\moderation\queue\ModerationQueue;
 use wcf\data\moderation\queue\ModerationQueueAction;
 use wcf\data\user\User;
 use wcf\data\user\UserProfile;
+use wcf\data\DatabaseObject;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\exception\SystemException;
 use wcf\system\moderation\queue\activation\IModerationQueueActivationHandler;
@@ -49,7 +50,7 @@ abstract class AbstractModerationQueueHandler implements IModerationQueueHandler
         * @inheritDoc
         */
        public function identifyOrphans(array $queues) {
-               if (empty($this->className) || !class_exists($this->className) || !is_subclass_of($this->className, 'wcf\data\DatabaseObject')) {
+               if (empty($this->className) || !class_exists($this->className) || !is_subclass_of($this->className, DatabaseObject::class)) {
                        throw new SystemException("DatabaseObject class name '" . $this->className . "' is missing or invalid");
                }
                
index ec936b496ae5315a3110e5fc56be3ad571ed0262..12358c0138eecfc6e7c639a24a672e56867cbc43 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\option;
+use wcf\data\category\CategoryNodeTree;
 use wcf\data\option\Option;
 use wcf\system\category\CategoryHandler;
 use wcf\system\exception\UserInputException;
@@ -27,7 +28,7 @@ abstract class AbstractCategoryMultiSelectOptionType extends AbstractOptionType
         * node tree class
         * @var string
         */
-       public $nodeTreeClassname = 'wcf\data\category\CategoryNodeTree';
+       public $nodeTreeClassname = CategoryNodeTree::class;
        
        /**
         * @inheritDoc
index 876d198120f05abf2e811aa6307b6f338cea53c9..c77ae3cd7b0fed85d33452ed58b8f6f292da6d27 100644 (file)
@@ -110,7 +110,7 @@ class FileOptionType extends AbstractOptionType {
                if ($option->filevalidation) {
                        $fileValidation = new $option->filevalidation();
                        if (!($fileValidation instanceof IUploadFileValidationStrategy)) {
-                               throw new SystemException("The file validation class needs to implement 'wcf\system\upload\IUploadFileValidationStrategy'");
+                               throw new SystemException("The file validation class needs to implement '".IUploadFileValidationStrategy::class."'");
                        }
                        
                        if (!$this->uploadHandlers[$option->optionName]->validateFiles($fileValidation)) {
index e9b7f736b1464af21798cf6281c0722f32d5b20e..16a98ffb318bd1a4356d98c45086adc1c3cad077 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\system\option;
 use wcf\data\option\category\OptionCategory;
 use wcf\data\option\Option;
 use wcf\system\application\ApplicationHandler;
+use wcf\system\cache\builder\OptionCacheBuilder;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\SystemException;
 use wcf\system\exception\UserInputException;
@@ -30,7 +31,7 @@ class OptionHandler implements IOptionHandler {
         * cache class name
         * @var string
         */
-       protected $cacheClass = 'wcf\system\cache\builder\OptionCacheBuilder';
+       protected $cacheClass = OptionCacheBuilder::class;
        
        /**
         * list of all option categories
@@ -378,8 +379,8 @@ class OptionHandler implements IOptionHandler {
                        return null;
                }
                
-               if (!is_subclass_of($className, 'wcf\system\option\IOptionType')) {
-                       throw new SystemException("'".$className."' does not implement 'wcf\system\option\IOptionType'");
+               if (!is_subclass_of($className, IOptionType::class)) {
+                       throw new SystemException("'".$className."' does not implement '".IOptionType::class."'");
                }
                
                return $className;
index 08ea43cca9a8002754b1b65a5619cab9f7a5f590..141e9827c3fb35f644b43d86227ed6a096998f91 100644 (file)
@@ -5,6 +5,7 @@ use wcf\data\option\Option;
 use wcf\data\user\option\UserOption;
 use wcf\data\user\option\ViewableUserOption;
 use wcf\data\user\User;
+use wcf\system\cache\builder\UserOptionCacheBuilder;
 use wcf\system\exception\UserInputException;
 use wcf\system\option\ISearchableConditionUserOption;
 use wcf\system\option\OptionHandler;
@@ -25,7 +26,7 @@ class UserOptionHandler extends OptionHandler {
        /**
         * @inheritDoc
         */
-       protected $cacheClass = 'wcf\system\cache\builder\UserOptionCacheBuilder';
+       protected $cacheClass = UserOptionCacheBuilder::class;
        
        /**
         * true if within registration process
index 6afdf61fc612f1d09c9bf079f31c47d9edd846df..5625f60f7a5ac840a2fb9cfeff99357655c67be5 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\system\option\user\group;
 use wcf\data\option\Option;
 use wcf\data\user\group\UserGroup;
+use wcf\system\cache\builder\UserGroupOptionCacheBuilder;
 use wcf\system\exception\SystemException;
 use wcf\system\exception\UserInputException;
 use wcf\system\option\OptionHandler;
@@ -21,7 +22,7 @@ class UserGroupOptionHandler extends OptionHandler {
        /**
         * @inheritDoc
         */
-       protected $cacheClass = 'wcf\system\cache\builder\UserGroupOptionCacheBuilder';
+       protected $cacheClass = UserGroupOptionCacheBuilder::class;
        
        /**
         * user group object
@@ -83,8 +84,8 @@ class UserGroupOptionHandler extends OptionHandler {
                if (!class_exists($className)) {
                        return null;
                }
-               if (!is_subclass_of($className, 'wcf\system\option\user\group\IUserGroupOptionType')) {
-                       throw new SystemException("'".$className."' does not implement 'wcf\system\option\user\group\IUserGroupOptionType'");
+               if (!is_subclass_of($className, IUserGroupOptionType::class)) {
+                       throw new SystemException("'".$className."' does not implement '".IUserGroupOptionType::class."'");
                }
                
                return $className;
index 4ccd9547e56d4b4a46b271b7cb2f03a5a3d72a58..9c40bb5157c8722057237d604c7a48cee456041f 100644 (file)
@@ -679,7 +679,7 @@ class PackageArchive {
                        
                        // sort multiple packages by version number
                        foreach ($existingPackages as $packageName => $instances) {
-                               uksort($instances, ['wcf\data\package\Package', 'compareVersion']);
+                               uksort($instances, [Package::class, 'compareVersion']);
                                
                                // get package with highest version number (get last package)
                                $existingPackages[$packageName] = array_pop($instances);
index 751a3beba1079787931dbee17124542d7ca1ced2..b875a77500c4b9e069a97dcf7e21b8fbc81b1f1a 100644 (file)
@@ -463,7 +463,7 @@ class PackageInstallationDispatcher {
                                WHERE   languageCategory = ?";
                        $statement2 = WCF::getDB()->prepareStatement($sql);
                        $statement2->execute(['wcf.acp.package']);
-                       $languageCategory = $statement2->fetchObject('wcf\data\language\category\LanguageCategory');
+                       $languageCategory = $statement2->fetchObject(LanguageCategory::class);
                }
                else {
                        $languageCategory = LanguageFactory::getInstance()->getCategory('wcf.acp.package');
@@ -570,7 +570,7 @@ class PackageInstallationDispatcher {
                $plugin = new $className($this, $nodeData);
                
                if (!($plugin instanceof IPackageInstallationPlugin)) {
-                       throw new SystemException("'".$className."' does not implement 'wcf\\system\\package\\plugin\\IPackageInstallationPlugin'");
+                       throw new SystemException("'".$className."' does not implement '".IPackageInstallationPlugin::class."'");
                }
                
                // execute PIP
index 7e638699f1baa16a4fcd306714c0edf10163a105..91212ae5f711f0643c17660075f91959e325b901 100644 (file)
@@ -184,7 +184,7 @@ class PackageInstallationScheduler {
                                if (isset($installedPackages[$row['package']])) {
                                        // package already installed -> check version
                                        // sort multiple instances by version number
-                                       uasort($installedPackages[$row['package']], ['wcf\data\package\Package', 'compareVersion']);
+                                       uasort($installedPackages[$row['package']], [Package::class, 'compareVersion']);
                                        
                                        foreach ($installedPackages[$row['package']] as $packageID => $packageVersion) {
                                                if (empty($row['minversion']) || Package::compareVersion($row['minversion'], $packageVersion, '<=')) {
@@ -481,7 +481,7 @@ class PackageInstallationScheduler {
                        
                        if (count($packageVersions) > 1) {
                                // sort by version number
-                               usort($packageVersions, ['wcf\data\package\Package', 'compareVersion']);
+                               usort($packageVersions, [Package::class, 'compareVersion']);
                                
                                // get highest version
                                $version = array_pop($packageVersions);
@@ -511,7 +511,7 @@ class PackageInstallationScheduler {
                }
                
                // sort by version number
-               uksort($fromversions, ['wcf\data\package\Package', 'compareVersion']);
+               uksort($fromversions, [Package::class, 'compareVersion']);
                
                // find shortest update thread
                $updateThread = $this->findShortestUpdateThread($package->package, $fromversions, $packageVersion, $version);
index 36c99d60aa800563603db20e548e419ba62e495b..6c3a47880763a41e94a45a355c34f69165a10bf8 100644 (file)
@@ -722,7 +722,7 @@ class PackageUpdateDispatcher extends SingletonFactory {
                }
                
                // sort by version number
-               usort($versions, ['wcf\data\package\Package', 'compareVersion']);
+               usort($versions, [Package::class, 'compareVersion']);
                
                // take newest (last)
                return array_pop($versions);
index e43139b873961509339dadeee4019ae9104cb011..2346a8b55679a9ef2f51b4926c092d75214fc1cb 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\acl\option\ACLOptionEditor;
 use wcf\system\exception\SystemException;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\acl\option\ACLOptionEditor';
+       public $className = ACLOptionEditor::class;
        
        /**
         * list of loaded acl object type ids sorted by their option type name
index b45a313ef69ae715abc264d2f66f9df001f56c26..f2b670df830c1802ecc921c2ac78d6d8aa5f088e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\acp\menu\item\ACPMenuItemEditor;
 
 /**
  * Installs, updates and deletes ACP menu items.
@@ -15,7 +16,7 @@ class ACPMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationPl
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\acp\menu\item\ACPMenuItemEditor';
+       public $className = ACPMenuItemEditor::class;
        
        /**
         * @inheritDoc
index 3f72b0e9e7247f1e4e1966896b9d82fbae16c99b..37592e27dbfdcb538f30d51aabfac7f8a342953d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\acp\search\provider\ACPSearchProviderEditor;
 use wcf\system\cache\builder\ACPSearchProviderCacheBuilder;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class ACPSearchProviderPackageInstallationPlugin extends AbstractXMLPackageInsta
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\acp\search\provider\ACPSearchProviderEditor';
+       public $className = ACPSearchProviderEditor::class;
        
        /**
         * @inheritDoc
index edde29ec8e87146becb7d80d13aca23c6d90ad18..0bde28501c8692e32ecea8b241326ecaf2511be7 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\clipboard\action\ClipboardActionEditor;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class ClipboardActionPackageInstallationPlugin extends AbstractXMLPackageInstall
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\clipboard\action\ClipboardActionEditor';
+       public $className = ClipboardActionEditor::class;
        
        /**
         * list of pages per action id
index 1d0d8b2a5fdb919761439bfdd877d93c4e95b297..11490c6c09d737ac61a7d4790652f9274d7f692a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\core\object\CoreObjectEditor;
 use wcf\system\cache\builder\CoreObjectCacheBuilder;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class CoreObjectPackageInstallationPlugin extends AbstractXMLPackageInstallation
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\core\object\CoreObjectEditor';
+       public $className = CoreObjectEditor::class;
        
        /**
         * @inheritDoc
index c575ab9462ca3598809538dbca4a84a8087b8552..6c4473918389c13e715db441ca191ea083eb3826 100644 (file)
@@ -19,7 +19,7 @@ class CronjobPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\cronjob\CronjobEditor';
+       public $className = CronjobEditor::class;
        
        /**
         * @inheritDoc
index e79025405a87f3484c497dc4809f15a197a563af..d29d7413db639dbee234e0b5103af924d8823e3c 100644 (file)
@@ -19,7 +19,7 @@ class EventListenerPackageInstallationPlugin extends AbstractXMLPackageInstallat
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\event\listener\EventListenerEditor';
+       public $className = EventListenerEditor::class;
        
        /**
         * @inheritDoc
index 618fdf00bf12e8274ca99ca17df16ae8e49beb06..d15d18833a474a3413bb2b4a131d2c3968aba70c 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\object\type\definition\ObjectTypeDefinitionEditor;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class ObjectTypeDefinitionPackageInstallationPlugin extends AbstractXMLPackageIn
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\object\type\definition\ObjectTypeDefinitionEditor';
+       public $className = ObjectTypeDefinitionEditor::class;
        
        /**
         * @inheritDoc
index f2c499b972cb6bab334d569b6ac53f7c5df554a5..bf9a51315abbdceff305734c46797bc232073817 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\object\type\ObjectTypeEditor;
 use wcf\system\exception\SystemException;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\object\type\ObjectTypeEditor';
+       public $className = ObjectTypeEditor::class;
        
        /**
         * @inheritDoc
index 571a8a20a5f87f423be0e2d564808133d9eb9236..964f01e351ebb9b85b7d6be5f391305100383735 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\package\installation\plugin\PackageInstallationPluginEditor;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class PIPPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\package\installation\plugin\PackageInstallationPluginEditor';
+       public $className = PackageInstallationPluginEditor::class;
        
        /**
         * @inheritDoc
index e812d5d9422d9f65e614d2080233bb91b78a37dd..38eedfed916167a84edead3fe76354a014debe87 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\sitemap\SitemapEditor;
 use wcf\system\cache\builder\SitemapCacheBuilder;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class SitemapPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\sitemap\SitemapEditor';
+       public $className = SitemapEditor::class;
        
        /**
         * @inheritDoc
index 9fd2a13b609f5c1a38475cd7cd4ab7bd40ddbabc..89125f15682f0728eb36c7a28646f9701b92ff7d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\smiley\SmileyEditor;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class SmileyPackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\smiley\SmileyEditor';
+       public $className = SmileyEditor::class;
        
        /**
         * @inheritDoc
index df7eb87e513e1275bf26678c7b90213b3d4daa67..741bb4da478af9a42880e68671216b6dfa8b558b 100644 (file)
@@ -19,7 +19,7 @@ class StylePackageInstallationPlugin extends AbstractPackageInstallationPlugin {
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\style\StyleEditor';
+       public $className = StyleEditor::class;
        
        /**
         * @inheritDoc
index 9001aa9ccc18474d7e54b55ddb594f7d11c7191a..527d5541fb450f7a5f5db841e7ae11d5a48cb12d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\template\listener\TemplateListenerEditor;
 use wcf\system\cache\builder\TemplateListenerCodeCacheBuilder;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class TemplateListenerPackageInstallationPlugin extends AbstractXMLPackageInstal
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\template\listener\TemplateListenerEditor';
+       public $className = TemplateListenerEditor::class;
        
        /**
         * @inheritDoc
index bddf9e2fbf8174da20738541ad74343f3746f6ac..83c23c4dbc44748dce54b7a1754e7e719b52d4fe 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\user\menu\item\UserMenuItemEditor;
 
 /**
  * Installs, updates and deletes user menu items.
@@ -15,7 +16,7 @@ class UserMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\user\menu\item\UserMenuItemEditor';
+       public $className = UserMenuItemEditor::class;
        
        /**
         * @inheritDoc
index 0cf63e54d339e6eab270c3fc2631fb2cc7c2ecf9..aa28ff0ffdce27a3af75e680cfd7c642939cd5e8 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\user\notification\event\UserNotificationEventEditor;
 use wcf\system\exception\SystemException;
 use wcf\system\WCF;
 
@@ -17,7 +18,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\user\notification\event\UserNotificationEventEditor';
+       public $className = UserNotificationEventEditor::class;
        
        /**
         * @inheritDoc
index ceb8bf67ba9b7f000908e0a8696f61b8bfe6b876..8521a5e35818e3dad1b8a675eddc068a7996bc9a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
+use wcf\data\user\profile\menu\item\UserProfileMenuItemEditor;
 use wcf\system\WCF;
 
 /**
@@ -16,7 +17,7 @@ class UserProfileMenuPackageInstallationPlugin extends AbstractXMLPackageInstall
        /**
         * @inheritDoc
         */
-       public $className = 'wcf\data\user\profile\menu\item\UserProfileMenuItemEditor';
+       public $className = UserProfileMenuItemEditor::class;
        
        /**
         * @inheritDoc
index 4d689150bb4d6b97f8eb58319916e33a09916edf..6f17306c9484a09fd0febfc13d62ef502f77aca9 100644 (file)
@@ -129,7 +129,7 @@ class PackageValidationArchive implements \RecursiveIterator {
                                                                WHERE   package = ?";
                                                        $statement = WCF::getDB()->prepareStatement($sql);
                                                        $statement->execute([$requirement['name']]);
-                                                       $package = $statement->fetchObject('wcf\data\package\Package');
+                                                       $package = $statement->fetchObject(Package::class);
                                                        
                                                        throw new PackageValidationException(PackageValidationException::MISSING_REQUIREMENT, [
                                                                'package' => $package,
index 72d1a19569580c0bb867ab34726c8846adb487b0..8f2baaeb9854173c7251b86d5b041e72988f8379 100644 (file)
@@ -421,11 +421,11 @@ class PollManager extends SingletonFactory {
                
                // validates against object type's class
                $className = $this->cache[$objectType]->className;
-               if (!is_subclass_of($className, 'wcf\system\poll\IPollHandler')) {
-                       throw new SystemException("'".$className."' does not implement 'wcf\system\poll\IPollHandler'");
+               if (!is_subclass_of($className, IPollHandler::class)) {
+                       throw new SystemException("'".$className."' does not implement '".IPollHandler::class."'");
                }
-               else if (!is_subclass_of($className, 'wcf\system\SingletonFactory')) {
-                       throw new SystemException("'".$className."' does not extend 'wcf\system\SingletonFactory'");
+               else if (!is_subclass_of($className, SingletonFactory::class)) {
+                       throw new SystemException("'".$className."' does not extend '".SingletonFactory::class."'");
                }
                
                $object = call_user_func([$className, 'getInstance']);
index 5e7c2116c38a20b58694ff354419925128376b19..e36fcfa215197f82f2a5faad691f77306f27fdc3 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\system\search;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\exception\SystemException;
+use wcf\system\search\mysql\MysqlSearchEngine;
 use wcf\system\SingletonFactory;
 
 /**
@@ -84,12 +85,12 @@ class SearchEngine extends SingletonFactory implements ISearchEngine {
                                        $className = '';
                                }
                        }
-                               
+                       
                        // fallback to MySQL
                        if (empty($className)) {
-                               $className = 'wcf\system\search\mysql\MysqlSearchEngine';
+                               $className = MysqlSearchEngine::class;
                        }
-                               
+                       
                        $this->searchEngine = call_user_func([$className, 'getInstance']);
                }
                
index 5e1299b820bd02b930c65a663369ba3b2f9e84e7..15706a9c4f0738ea6a422327729a2fe3315339f0 100644 (file)
@@ -5,6 +5,7 @@ use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\package\Package;
 use wcf\data\package\PackageList;
 use wcf\system\exception\SystemException;
+use wcf\system\search\mysql\MysqlSearchIndexManager;
 use wcf\system\SingletonFactory;
 
 /**
@@ -91,7 +92,7 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager
                        
                        // fallback to MySQL
                        if (empty($className)) {
-                               $className = 'wcf\system\search\mysql\MysqlSearchIndexManager';
+                               $className = MysqlSearchIndexManager::class;
                        }
                        
                        $this->searchIndexManager = call_user_func([$className, 'getInstance']);
index d1670d0ee21551d9434ed313ff4d408e09450a8c..231d07398006207f6b8ac95f5cfd868851425e4e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\search;
+use wcf\data\search\keyword\SearchKeyword;
 use wcf\data\search\keyword\SearchKeywordAction;
 use wcf\system\SingletonFactory;
 use wcf\system\WCF;
@@ -29,7 +30,7 @@ class SearchKeywordManager extends SingletonFactory {
                        WHERE   keyword = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute([$keyword]);
-               if (($object = $statement->fetchObject('wcf\data\search\keyword\SearchKeyword')) !== null) {
+               if (($object = $statement->fetchObject(SearchKeyword::class)) !== null) {
                        $action = new SearchKeywordAction([$object], 'update', ['data' => [
                                'searches' => $object->searches + 1,
                                'lastSearchTime' => TIME_NOW
index a3e0941441fb7ccf91ac5dd1cfbfc3bc17779eb8..51f97868e161728672966e9b4e5f3fd18502b954 100644 (file)
@@ -51,8 +51,8 @@ class ACPSearchHandler extends SingletonFactory {
                
                foreach ($this->cache as $acpSearchProvider) {
                        $className = $acpSearchProvider->className;
-                       if (!is_subclass_of($className, 'wcf\system\search\acp\IACPSearchResultProvider')) {
-                               throw new SystemException("'".$className."' does not implement 'wcf\system\search\acp\IACPSearchResultProvider'");
+                       if (!is_subclass_of($className, IACPSearchResultProvider::class)) {
+                               throw new SystemException("'".$className."' does not implement '".IACPSearchResultProvider::class."'");
                        }
                        
                        $provider = new $className();
index b5f2c8616fcc319069670259d85b3ab1b9ad6b25..bec4cad3b9ed376d4e0c6a3558427b345466e6da 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\search\acp;
 use wcf\data\DatabaseObject;
+use wcf\data\DatabaseObjectList;
 use wcf\system\exception\SystemException;
 
 /**
@@ -89,7 +90,7 @@ abstract class AbstractCategorizedACPSearchResultProvider extends AbstractACPSea
         */
        protected function loadCategories() {
                // validate list class name
-               if (empty($this->listClassName) || !is_subclass_of($this->listClassName, 'wcf\data\DatabaseObjectList')) {
+               if (empty($this->listClassName) || !is_subclass_of($this->listClassName, DatabaseObjectList::class)) {
                        throw new SystemException("Given class '".$this->listClassName."' is empty or invalid");
                }
                
index 93177e813adb22c0d106bfd0cb5dfc63c33422aa..8e26b833b79d819a7a2d9442c35889c8bd498fe3 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\search\acp;
+use wcf\data\acp\menu\item\ACPMenuItem;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\menu\acp\ACPMenu;
 use wcf\system\WCF;
@@ -62,7 +63,7 @@ class MenuItemACPSearchResultProvider extends AbstractACPSearchResultProvider im
                $statement->execute($conditions->getParameters());
                
                $menuItems = ACPMenu::getInstance()->menuItemList;
-               while ($menuItem = $statement->fetchObject('wcf\data\acp\menu\item\ACPMenuItem')) {
+               while ($menuItem = $statement->fetchObject(ACPMenuItem::class)) {
                        // only valid menu items exist in TreeMenu::$menuItemList,
                        // so no need to call AbstractACPSearchResultProvider::validate()
                        if (!isset($menuItems[$menuItem->menuItem])) {
index 0a7346599e512b22a6b11c02f019753483d43856..0cb4668232fc2a7d65727819c0bfa414070a8e52 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 namespace wcf\system\search\acp;
+use wcf\data\option\category\OptionCategoryList;
+use wcf\data\option\Option;
 use wcf\system\cache\builder\OptionCacheBuilder;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\request\LinkHandler;
@@ -19,7 +21,7 @@ class OptionACPSearchResultProvider extends AbstractCategorizedACPSearchResultPr
        /**
         * @inheritDoc
         */
-       protected $listClassName = 'wcf\data\option\category\OptionCategoryList';
+       protected $listClassName = OptionCategoryList::class;
        
        /**
         * @inheritDoc
@@ -63,7 +65,7 @@ class OptionACPSearchResultProvider extends AbstractCategorizedACPSearchResultPr
                
                $optionCategories = OptionCacheBuilder::getInstance()->getData([], 'categories');
                
-               while ($option = $statement->fetchObject('wcf\data\option\Option')) {
+               while ($option = $statement->fetchObject(Option::class)) {
                        // category is not accessible
                        if (!$this->isValid($option->categoryName)) {
                                continue;
index 013eb70023a9fe4f177b481bbf3a5d4645242b10..641565393a60fa24e3e4dd66383d8308f0ea4954 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\search\acp;
+use wcf\data\package\Package;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
@@ -58,7 +59,7 @@ class PackageACPSearchResultProvider implements IACPSearchResultProvider {
                        '%'.$query.'%'
                ], $conditions->getParameters()));
                
-               while ($package = $statement->fetchObject('wcf\data\package\Package')) {
+               while ($package = $statement->fetchObject(Package::class)) {
                        $results[] = new ACPSearchResult($package->getName(), LinkHandler::getInstance()->getLink('Package', [
                                'id' => $package->packageID,
                                'title' => $package->getName()
index 441e651b08454cc62f0b5fb0f1e1af6f9d87db9b..635da1469910ef4635ba422490a311d6d70008da 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\search\acp;
 use wcf\data\user\group\UserGroup;
+use wcf\data\user\User;
 use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
@@ -31,7 +32,7 @@ class UserACPSearchResultProvider implements IACPSearchResultProvider {
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute([$query.'%']);
                
-               while ($user = $statement->fetchObject('wcf\data\user\User')) {
+               while ($user = $statement->fetchObject(User::class)) {
                        if (UserGroup::isAccessibleGroup($user->getGroupIDs())) {
                                $results[] = new ACPSearchResult($user->username, LinkHandler::getInstance()->getLink('UserEdit', [
                                        'object' => $user
index a64e4af8f2fb51747cc9a63f836d41a6d5443469..1c59f004f23533d98292d4e059905daf2e4dbb78 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 namespace wcf\system\search\acp;
+use wcf\data\user\group\option\category\UserGroupOptionCategoryList;
+use wcf\data\user\group\option\UserGroupOption;
 use wcf\system\cache\builder\UserGroupOptionCacheBuilder;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\request\LinkHandler;
@@ -19,7 +21,7 @@ class UserGroupOptionACPSearchResultProvider extends AbstractCategorizedACPSearc
        /**
         * @inheritDoc
         */
-       protected $listClassName = 'wcf\data\user\group\option\category\UserGroupOptionCategoryList';
+       protected $listClassName = UserGroupOptionCategoryList::class;
        
        /**
         * @inheritDoc
@@ -65,7 +67,7 @@ class UserGroupOptionACPSearchResultProvider extends AbstractCategorizedACPSearc
                
                $optionCategories = UserGroupOptionCacheBuilder::getInstance()->getData([], 'categories');
                
-               while ($userGroupOption = $statement->fetchObject('wcf\data\user\group\option\UserGroupOption')) {
+               while ($userGroupOption = $statement->fetchObject(UserGroupOption::class)) {
                        // category is not accessible
                        if (!$this->isValid($userGroupOption->categoryName)) {
                                continue;
index 9390e74fd7076f978f28286fa17e346f7d28b60c..aa421c1e85b4ebcd06599142f090fd9a37f94f5a 100644 (file)
@@ -6,6 +6,7 @@ use wcf\data\acp\session\virtual\ACPSessionVirtualEditor;
 use wcf\data\session\virtual\SessionVirtual;
 use wcf\data\session\virtual\SessionVirtualAction;
 use wcf\data\session\virtual\SessionVirtualEditor;
+use wcf\data\session\SessionEditor;
 use wcf\data\user\User;
 use wcf\data\user\UserEditor;
 use wcf\page\ITrackablePage;
@@ -493,7 +494,7 @@ class SessionHandler extends SingletonFactory {
         */
        protected function create() {
                $spiderID = null;
-               if ($this->sessionEditorClassName == 'wcf\data\session\SessionEditor') {
+               if ($this->sessionEditorClassName == SessionEditor::class) {
                        // get spider information
                        $spiderID = $this->getSpiderID(UserUtil::getUserAgent());
                        if ($spiderID !== null) {
index 5add9f646c9ec1312333e018a5a60fbaa192cf37..a04c5422ded329127407097ade1388f142f238c1 100644 (file)
@@ -175,7 +175,7 @@ class TagEngine extends SingletonFactory {
                $statement->execute($conditions->getParameters());
                
                $tags = [];
-               while ($tag = $statement->fetchObject('wcf\data\tag\Tag')) {
+               while ($tag = $statement->fetchObject(Tag::class)) {
                        if (!isset($tags[$tag->objectID])) {
                                $tags[$tag->objectID] = [];
                        }
index 07a7928880170ec90e9368e45f86ff4195fb5b2e..7f4410aaf79e87d09420d1922cb898f35a228165 100644 (file)
@@ -34,7 +34,7 @@ class DefaultUserAuthentication extends AbstractUserAuthentication {
        /**
         * @inheritDoc
         */
-       public function loginManually($username, $password, $userClassname = 'wcf\data\user\User') {
+       public function loginManually($username, $password, $userClassname = User::class) {
                $user = $this->getUserByLogin($username);
                $userSession = (get_class($user) == $userClassname ? $user : new $userClassname(null, null, $user));
                
@@ -53,7 +53,7 @@ class DefaultUserAuthentication extends AbstractUserAuthentication {
        /**
         * @inheritDoc
         */
-       public function loginAutomatically($persistent = false, $userClassname = 'wcf\data\user\User') {
+       public function loginAutomatically($persistent = false, $userClassname = User::class) {
                if (!$persistent) return null;
                
                $user = null;
@@ -87,7 +87,7 @@ class DefaultUserAuthentication extends AbstractUserAuthentication {
         * @param       string          $userClassname
         * @return      \wcf\data\user\User
         */
-       protected function getUserAutomatically($userID, $password, $userClassname = 'wcf\data\user\User') {
+       protected function getUserAutomatically($userID, $password, $userClassname = User::class) {
                $user = new $userClassname($userID);
                if (!$user->userID || !$this->checkCookiePassword($user, $password)) {
                        $user = null;
index aa28f3460fbd68efb2f42869f60e75d57cb17d6f..f3c2061fc304be0fa30c7a60f4412668edafe8a3 100644 (file)
@@ -44,7 +44,7 @@ interface IUserAuthentication {
         * @param       string          $userClassname          class name of user class
         * @return      \wcf\data\user\User
         */
-       public function loginManually($username, $password, $userClassname = 'wcf\data\user\User');
+       public function loginManually($username, $password, $userClassname = User::class);
        
        /**
         * Does a user login automatically.
@@ -53,5 +53,5 @@ interface IUserAuthentication {
         * @param       string          $userClassname          class name of user class
         * @return      \wcf\data\user\User
         */
-       public function loginAutomatically($persistent = false, $userClassname = 'wcf\data\user\User');
+       public function loginAutomatically($persistent = false, $userClassname = User::class);
 }
index 82e675631a9008fbed7d41ff966553e90f6de03d..ebbdd448d6b841ae6a71180636ae1ecf2397f27a 100644 (file)
@@ -19,7 +19,7 @@ class UserAuthenticationFactory extends SingletonFactory {
         * user authentication class name
         * @var string
         */
-       public $className = 'wcf\system\user\authentication\DefaultUserAuthentication';
+       public $className = DefaultUserAuthentication::class;
        
        /**
         * user authentication instance
@@ -34,8 +34,8 @@ class UserAuthenticationFactory extends SingletonFactory {
                // call loadInstance event
                EventHandler::getInstance()->fireAction($this, 'init');
                
-               if (!is_subclass_of($this->className, 'wcf\system\user\authentication\IUserAuthentication')) {
-                       throw new SystemException("'" . $this->className . "' does not implement 'wcf\system\user\authentication\IUserAuthentication'");
+               if (!is_subclass_of($this->className, IUserAuthentication::class)) {
+                       throw new SystemException("'" . $this->className . "' does not implement '".IUserAuthentication::class."'");
                }
                
                $this->userAuthentication = call_user_func([$this->className, 'getInstance']);
index 72ef8d6081b9815501562b3c537f767e401a990a..ae6358e778ec9e1e6dc5cf2d560a27ac883f3034 100644 (file)
@@ -374,7 +374,7 @@ class UserNotificationHandler extends SingletonFactory {
                $statement->execute($conditions->getParameters());
                
                $notifications = [];
-               while ($notification = $statement->fetchObject('\wcf\data\user\notification\UserNotification')) {
+               while ($notification = $statement->fetchObject(UserNotification::class)) {
                        $notifications[$notification->notificationID] = $notification;
                }
                
index 4986d50f4268187ffe4782c00cd5af1c26741bcc..4d85882d9949ad8c1f284c96f854f50f84a210e6 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace wcf\system\user\notification\object\type;
+use wcf\data\like\Like;
+use wcf\data\like\LikeList;
+use wcf\system\user\notification\object\LikeUserNotificationObject;
 
 /**
  * User notification object type implementation for likes.
@@ -15,15 +18,15 @@ class LikeUserNotificationObjectType extends AbstractUserNotificationObjectType
        /**
         * @inheritDoc
         */
-       protected static $decoratorClassName = 'wcf\system\user\notification\object\LikeUserNotificationObject';
+       protected static $decoratorClassName = LikeUserNotificationObject::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectClassName = 'wcf\data\like\Like';
+       protected static $objectClassName = Like::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectListClassName = 'wcf\data\like\LikeList';
+       protected static $objectListClassName = LikeList::class;
 }
index 896fbc4a24029eebc1c80a51731a66ae4236dff8..9bd4cbdc6363eaa3758ad320e20beee4fcc5b5bb 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace wcf\system\user\notification\object\type;
+use wcf\data\user\follow\UserFollow;
+use wcf\data\user\follow\UserFollowList;
+use wcf\system\user\notification\object\UserFollowUserNotificationObject;
 
 /**
  * Represents a following user as a notification object type.
@@ -15,15 +18,15 @@ class UserFollowUserNotificationObjectType extends AbstractUserNotificationObjec
        /**
         * @inheritDoc
         */
-       protected static $decoratorClassName = 'wcf\system\user\notification\object\UserFollowUserNotificationObject';
+       protected static $decoratorClassName = UserFollowUserNotificationObject::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectClassName = 'wcf\data\user\follow\UserFollow';
+       protected static $objectClassName = UserFollow::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectListClassName = 'wcf\data\user\follow\UserFollowList';
+       protected static $objectListClassName = UserFollowList::class;
 }
index 9055ad57db5c07e03e724b38cf4bd448de9803c3..ff9995e4fd4421a2c3fa174d809599ddbb93393b 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace wcf\system\user\notification\object\type;
+use wcf\data\comment\response\CommentResponse;
+use wcf\data\comment\response\CommentResponseList;
+use wcf\system\user\notification\object\CommentResponseUserNotificationObject;
 
 /**
  * Represents a comment response notification object type.
@@ -15,15 +18,15 @@ class UserProfileCommentResponseUserNotificationObjectType extends AbstractUserN
        /**
         * @inheritDoc
         */
-       protected static $decoratorClassName = 'wcf\system\user\notification\object\CommentResponseUserNotificationObject';
+       protected static $decoratorClassName = CommentResponseUserNotificationObject::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectClassName = 'wcf\data\comment\response\CommentResponse';
+       protected static $objectClassName = CommentResponse::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectListClassName = 'wcf\data\comment\response\CommentResponseList';
+       protected static $objectListClassName = CommentResponseList::class;
 }
index 008259112d7b1cda2f57dac0f84db6adc0c85d10..50af651f90fc4fabe7905febe1a263f53cf0baff 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace wcf\system\user\notification\object\type;
+use wcf\data\comment\Comment;
+use wcf\data\comment\CommentList;
+use wcf\system\user\notification\object\CommentUserNotificationObject;
 use wcf\system\WCF;
 
 /**
@@ -16,17 +19,17 @@ class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificat
        /**
         * @inheritDoc
         */
-       protected static $decoratorClassName = 'wcf\system\user\notification\object\CommentUserNotificationObject';
+       protected static $decoratorClassName = CommentUserNotificationObject::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectClassName = 'wcf\data\comment\Comment';
+       protected static $objectClassName = Comment::class;
        
        /**
         * @inheritDoc
         */
-       protected static $objectListClassName = 'wcf\data\comment\CommentList';
+       protected static $objectListClassName = CommentList::class;
        
        /**
         * @inheritDoc
index 87ee03661e510034ef29470179141860d75f6050..23b38ed30d06998358bcc8fe26ebb1da411337ef 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\worker;
+use wcf\data\DatabaseObjectList;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\SystemException;
 use wcf\system\request\LinkHandler;
@@ -91,8 +92,8 @@ abstract class AbstractRebuildDataWorker extends AbstractWorker implements IRebu
                        throw new SystemException('DatabaseObjectList class name not specified.');
                }
                
-               if (!is_subclass_of($this->objectListClassName, 'wcf\data\DatabaseObjectList')) {
-                       throw new SystemException("'".$this->objectListClassName."' does not extend 'wcf\data\DatabaseObjectList'");
+               if (!is_subclass_of($this->objectListClassName, DatabaseObjectList::class)) {
+                       throw new SystemException("'".$this->objectListClassName."' does not extend '".DatabaseObjectList::class."'");
                }
                
                $this->objectList = new $this->objectListClassName();
index 659cae2d11903a1b7b4e5bdf23b81080cc9aac5b..a04242082ec679d8c0fdbdfd8d2f0e73aed92605 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\worker;
 use wcf\data\attachment\AttachmentAction;
+use wcf\data\attachment\AttachmentList;
 use wcf\system\exception\SystemException;
 
 /**
@@ -17,7 +18,7 @@ class AttachmentRebuildDataWorker extends AbstractRebuildDataWorker {
        /**
         * @inheritDoc
         */
-       protected $objectListClassName = 'wcf\data\attachment\AttachmentList';
+       protected $objectListClassName = AttachmentList::class;
        
        /**
         * @inheritDoc
index b8bd7acd68274c0754f00d69c8b2a54cea043333..60db543e5fb34660a2f40c23f185a55a0ff3ef21 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\worker;
 use wcf\data\like\Like;
+use wcf\data\like\LikeList;
 use wcf\system\user\activity\point\UserActivityPointHandler;
 use wcf\system\WCF;
 
@@ -18,7 +19,7 @@ class LikeRebuildDataWorker extends AbstractRebuildDataWorker {
        /**
         * @inheritDoc
         */
-       protected $objectListClassName = 'wcf\data\like\LikeList';
+       protected $objectListClassName = LikeList::class;
        
        /**
         * @inheritDoc
index bce556418cc884d4762983e918c89b4af7e71532..1fde8d86b4b4dc727355ccd3e17042ef2865860c 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\worker;
+use wcf\data\like\object\LikeObjectList;
 use wcf\data\like\Like;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\WCF;
@@ -18,7 +19,7 @@ class LikeUserRebuildDataWorker extends AbstractRebuildDataWorker {
        /**
         * @inheritDoc
         */
-       protected $objectListClassName = 'wcf\data\like\object\LikeObjectList';
+       protected $objectListClassName = LikeObjectList::class;
        
        /**
         * @inheritDoc
index e4e4e3a600df16b3149aa94a1f70e1e650db00cc..e8e5fd5cd419916a6af0e1cf6817575b495b7a61 100644 (file)
@@ -41,7 +41,7 @@ class SendNewPasswordWorker extends AbstractWorker {
         */
        public function execute() {
                $userList = new UserList();
-               $userList->decoratorClassName = 'wcf\data\user\UserEditor';
+               $userList->decoratorClassName = UserEditor::class;
                $userList->getConditionBuilder()->add('user_table.userID IN (?)', [$this->parameters['userIDs']]);
                $userList->sqlLimit = $this->limit;
                $userList->sqlOffset = $this->limit * $this->loopCount;
index c2f2130206c0a71d8a526c75eee650a85516ca74..95167f4b677a35dec1e29e6ec8053fad9112c79d 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\system\worker;
 use wcf\data\like\Like;
 use wcf\data\user\UserEditor;
+use wcf\data\user\UserList;
 use wcf\data\user\UserProfileAction;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\user\activity\point\UserActivityPointHandler;
@@ -21,7 +22,7 @@ class UserRebuildDataWorker extends AbstractRebuildDataWorker {
        /**
         * @inheritDoc
         */
-       protected $objectListClassName = 'wcf\data\user\UserList';
+       protected $objectListClassName = UserList::class;
        
        /**
         * @inheritDoc
index f76d29829ea825206661a025004118ef3c044dfe..13244aee78e5bc5620bd3aa6438562dbe467b101 100644 (file)
@@ -81,7 +81,7 @@ final class HeaderUtil {
                        @header('X-Frame-Options: SAMEORIGIN');
                }
                
-               ob_start(['wcf\util\HeaderUtil', 'parseOutput']);
+               ob_start([self::class, 'parseOutput']);
        }
        
        /**
@@ -120,7 +120,7 @@ final class HeaderUtil {
                // 3rd party plugins may differ the actual output before it is sent to the browser
                // please be aware, that $eventObj is not available here due to this being a static
                // class. Use HeaderUtil::$output to modify it.
-               if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction('wcf\util\HeaderUtil', 'parseOutput');
+               if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction(self::class, 'parseOutput');
                
                // gzip compression
                if (self::$enableGzipCompression) {