Add `since` PHPDoc for cleaned package update server management
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Aug 2020 10:35:02 +0000 (12:35 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 10:35:02 +0000 (12:35 +0200)
Co-authored-by: Matthias Schmidt <gravatronics@live.com>
wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php
wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index a4d5b5c87efbbdebda2b10fef4cb9b2aebdb36cf..c3ab55c86833ee6577083fbdcb6d62dfc39426ed 100755 (executable)
@@ -70,6 +70,8 @@ class PackageUpdateServerAddForm extends AbstractForm {
        
        /**
         * Validates the server URL.
+        * 
+        * @since       5.3
         */
        protected function validateServerURL() {
                if (empty($this->serverURL)) {
@@ -93,6 +95,8 @@ class PackageUpdateServerAddForm extends AbstractForm {
        
        /**
         * Returns the first package update server with a matching serverURL.
+        * 
+        * @since       5.3
         */
        protected function findDuplicateServer() {
                $packageServerList = new PackageUpdateServerList();
index b9f94889ac53f246c9cfb90244d9da44be258d87..2af28a4159547b2be8c6cdddb743b59ae7d38fa2 100755 (executable)
@@ -47,6 +47,8 @@ class PackageUpdateServerEditForm extends PackageUpdateServerAddForm {
        
        /**
         * Does nothing.
+        * 
+        * @since       5.3
         */
        public function validateServerURL() {
                // The server URL cannot be modified, thus we do not need to validate it.
index 251e90988208c6a170ddb8ab13e62b2503c3921d..9b7941bc57a62f82df1c8c2fb6caaf5174273865 100644 (file)
@@ -249,6 +249,7 @@ class PackageUpdateServer extends DatabaseObject {
         * Returns whether the current user may delete this update server.
         * 
         * @return      boolean
+        * @since       5.3
         */
        public final function canDelete() {
                return !$this->isWoltLabUpdateServer() && !$this->isWoltLabStoreServer();