Updates page locations
authorMatthias Schmidt <gravatronics@live.com>
Wed, 24 Aug 2011 15:34:46 +0000 (17:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 24 Aug 2011 15:34:46 +0000 (17:34 +0200)
Changes: - ILocation is now IPageLocation - ILocation isn't in the data
folder anymore but in the system folder - IPageLocation uses
PageLocation database objects rather than arrays

wcfsetup/install/files/lib/data/page/location/ILocation.class.php [deleted file]
wcfsetup/install/files/lib/data/page/location/PageLocation.class.php
wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/data/page/location/ILocation.class.php b/wcfsetup/install/files/lib/data/page/location/ILocation.class.php
deleted file mode 100644 (file)
index a757621..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-namespace wcf\data\page\location;
-use wcf\data\IDatabaseObjectProcessor;
-
-/**
- * Any page location class should implement this interface.
- *
- * @author     Marcel Werk
- * @copyright  2001-2011 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    com.woltlab.wcf
- * @subpackage data.page.location
- * @category   Community Framework
- */
-interface ILocation extends IDatabaseObjectProcessor {
-       /**
-        * Caches the information of a page location.
-        * 
-        * @param       array           $location
-        * @param       string          $requestURI
-        * @param       string          $requestMethod
-        * @param       array           $match
-        */
-       public function cache($location, $requestURI, $requestMethod, $match);
-       
-       /**
-        * Returns the information of a page location.
-        * 
-        * @param       array           $location
-        * @param       string          $requestURI
-        * @param       string          $requestMethod
-        * @param       array           $match
-        * @return      string
-        */
-       public function get($location, $requestURI, $requestMethod, $match);
-}
index 3c6053d144f5856d1f067659dc646f461d77b824..c85efc46e2a70c8c8c1ec9926393308e8765ef44 100644 (file)
@@ -26,5 +26,5 @@ class PageLocation extends ProcessibleDatabaseObject {
        /**
         * @see wcf\data\ProcessibleDatabaseObject::$processorInterface
         */
-       protected static $processorInterface = 'wcf\data\page\location\ILocation';
+       protected static $processorInterface = 'wcf\system\page\location\IPageLocation';
 }
diff --git a/wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php b/wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php
new file mode 100644 (file)
index 0000000..7d7b256
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+namespace wcf\system\page\location;
+use wcf\data\page\location\PageLocation;
+use wcf\data\IDatabaseObjectProcessor;
+
+/**
+ * Any page location class should implement this interface.
+ *
+ * @author     Marcel Werk
+ * @copyright  2001-2011 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    com.woltlab.wcf
+ * @subpackage system.page.location
+ * @category   Community Framework
+ */
+interface IPageLocation extends IDatabaseObjectProcessor {
+       /**
+        * Caches the information of a page location.
+        * 
+        * @param       wcf\data\page\location\PageLocation     $location
+        * @param       string          $requestURI
+        * @param       string          $requestMethod
+        * @param       array           $match
+        */
+       public function cache(PageLocation $location, $requestURI, $requestMethod, array $match);
+       
+       /**
+        * Returns the information of a page location.
+        * 
+        * @param       wcf\data\page\location\PageLocation     $location
+        * @param       string          $requestURI
+        * @param       string          $requestMethod
+        * @param       array           $match
+        * @return      string
+        */
+       public function get(PageLocation $location, $requestURI, $requestMethod, array $match);
+}