Renames IRouteController::getID() to IRouteController::getObjectID()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 14 Jan 2013 11:59:52 +0000 (12:59 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 14 Jan 2013 11:59:52 +0000 (12:59 +0100)
Because of `DatabaseObject::getObjectID()`, you don't need to implement such a method when implementing `IRouteController`.

wcfsetup/install/files/lib/data/category/Category.class.php
wcfsetup/install/files/lib/data/user/User.class.php
wcfsetup/install/files/lib/system/request/IRouteController.class.php
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index 85be108260dc283f3a32ddc2abf6b16330ad8cdb..573954589d59f20e27a1db96d8c885347695b5cf 100644 (file)
@@ -64,13 +64,6 @@ class Category extends ProcessibleDatabaseObject implements IRouteController {
                return $value;
        }
        
-       /**
-        * @see wcf\system\request\IRouteController::getID()
-        */
-       public function getID() {
-               return $this->categoryID;
-       }
-       
        /**
         * Returns the category object type of the category.
         * 
index b8f40fc855bc65823394c6e33a23d45e758846ca..233a99d559bf281cd07d69b1a7f9126a336617a3 100644 (file)
@@ -375,13 +375,6 @@ final class User extends DatabaseObject implements IRESTfulResponse, IRouteContr
                return 'user_table';
        }
        
-       /**
-        * @see wcf\system\request\IRouteController::getID()
-        */
-       public function getID() {
-               return $this->userID;
-       }
-       
        /**
         * @see wcf\system\request\IRouteController::getTitle()
         */
index 5d20ecd0cde0ab1b1b79d575d6c11e8b6c9fc3d0..9ed32a82afb613ea53f7a193d76ac71f0d7caf64 100644 (file)
@@ -14,9 +14,9 @@ use wcf\data\ITitledDatabaseObject;
  */
 interface IRouteController extends ITitledDatabaseObject {
        /**
-        * Returns the object id.
+        * Returns the id of the object.
         * 
         * @return      integer
         */
-       public function getID();
+       public function getObjectID();
 }
index 687fbb807bd71702f6b563e6aae658a3ea409e4b..496467f0f8bcd289790a607444c3dfd26427ce04 100644 (file)
@@ -89,7 +89,7 @@ class LinkHandler extends SingletonFactory {
                        }
                        
                        if ($parameters['object'] instanceof IRouteController) {
-                               $parameters['id'] = $parameters['object']->getID();
+                               $parameters['id'] = $parameters['object']->getObjectID();
                                $parameters['title'] = $parameters['object']->getTitle();
                        }