From 2291b91928f2519c7054a8a7046504a4f83e954e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 24 Aug 2011 17:34:46 +0200 Subject: [PATCH] Updates page locations 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 --- .../lib/data/page/location/PageLocation.class.php | 2 +- .../page/location/IPageLocation.class.php} | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) rename wcfsetup/install/files/lib/{data/page/location/ILocation.class.php => system/page/location/IPageLocation.class.php} (58%) diff --git a/wcfsetup/install/files/lib/data/page/location/PageLocation.class.php b/wcfsetup/install/files/lib/data/page/location/PageLocation.class.php index 3c6053d144..c85efc46e2 100644 --- a/wcfsetup/install/files/lib/data/page/location/PageLocation.class.php +++ b/wcfsetup/install/files/lib/data/page/location/PageLocation.class.php @@ -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/data/page/location/ILocation.class.php b/wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php similarity index 58% rename from wcfsetup/install/files/lib/data/page/location/ILocation.class.php rename to wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php index a757621c66..7d7b2560fe 100644 --- a/wcfsetup/install/files/lib/data/page/location/ILocation.class.php +++ b/wcfsetup/install/files/lib/system/page/location/IPageLocation.class.php @@ -1,5 +1,6 @@ * @package com.woltlab.wcf - * @subpackage data.page.location + * @subpackage system.page.location * @category Community Framework */ -interface ILocation extends IDatabaseObjectProcessor { +interface IPageLocation extends IDatabaseObjectProcessor { /** * Caches the information of a page location. * - * @param array $location + * @param wcf\data\page\location\PageLocation $location * @param string $requestURI * @param string $requestMethod * @param array $match */ - public function cache($location, $requestURI, $requestMethod, $match); + public function cache(PageLocation $location, $requestURI, $requestMethod, array $match); /** * Returns the information of a page location. * - * @param array $location + * @param wcf\data\page\location\PageLocation $location * @param string $requestURI * @param string $requestMethod * @param array $match * @return string */ - public function get($location, $requestURI, $requestMethod, $match); + public function get(PageLocation $location, $requestURI, $requestMethod, array $match); } -- 2.20.1