From e66d9d3d9ab15a66fd136f41e046e33c785c3e2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 7 May 2008 15:00:44 +0000 Subject: [PATCH] Even more renamed --- .gitattributes | 4 ++-- application/ship-simu/class_ApplicationHelper.php | 2 +- ...faultController.php => class_WebDefaultController.php} | 6 +++--- ...sController.php => class_WebDefaultNewsController.php} | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) rename inc/classes/main/controller/default/{class_LocalDefaultController.php => class_WebDefaultController.php} (91%) rename inc/classes/main/controller/default/{class_LocalDefaultNewsController.php => class_WebDefaultNewsController.php} (90%) diff --git a/.gitattributes b/.gitattributes index 6b382e1..3722a34 100644 --- a/.gitattributes +++ b/.gitattributes @@ -256,8 +256,8 @@ inc/classes/main/console/class_ConsoleTools.php -text inc/classes/main/controller/.htaccess -text inc/classes/main/controller/class_BaseController.php -text inc/classes/main/controller/default/.htaccess -text -inc/classes/main/controller/default/class_LocalDefaultController.php -text -inc/classes/main/controller/default/class_LocalDefaultNewsController.php -text +inc/classes/main/controller/default/class_WebDefaultController.php -text +inc/classes/main/controller/default/class_WebDefaultNewsController.php -text inc/classes/main/controller/registration/.htaccess -text inc/classes/main/controller/registration/class_DefaultRegistrationController.php -text inc/classes/main/database/.htaccess -text diff --git a/application/ship-simu/class_ApplicationHelper.php b/application/ship-simu/class_ApplicationHelper.php index 07aeffc..2b31ffa 100644 --- a/application/ship-simu/class_ApplicationHelper.php +++ b/application/ship-simu/class_ApplicationHelper.php @@ -187,7 +187,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica $responseInstance = HttpResponse::createHttpResponse($this); // Get a new controller instance as well - $controllerInstance = LocalControllerResolver::createLocalControllerResolver($defaultCommand, $this)->resolveDefaultController(); + $controllerInstance = WebControllerResolver::createWebControllerResolver($defaultCommand, $this)->resolveDefaultController(); // Handle the request $controllerInstance->handleRequest($requestInstance, $responseInstance); diff --git a/inc/classes/main/controller/default/class_LocalDefaultController.php b/inc/classes/main/controller/default/class_WebDefaultController.php similarity index 91% rename from inc/classes/main/controller/default/class_LocalDefaultController.php rename to inc/classes/main/controller/default/class_WebDefaultController.php index a79243a..3256f46 100644 --- a/inc/classes/main/controller/default/class_LocalDefaultController.php +++ b/inc/classes/main/controller/default/class_WebDefaultController.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class LocalLocalDefaultController extends BaseController implements Controller { +class WebWebDefaultController extends BaseController implements Controller { /** * Instance of a CommandResolver class */ @@ -52,9 +52,9 @@ class LocalLocalDefaultController extends BaseController implements Controller { * @param $resolverInstance An instance of a command resolver class * @return $controllerInstance A prepared instance of this class */ - public final static function createLocalDefaultController (CommandResolver $resolverInstance) { + public final static function createWebDefaultController (CommandResolver $resolverInstance) { // Create the instance - $controllerInstance = new LocalDefaultController(); + $controllerInstance = new WebDefaultController(); // Set the command resolver $controllerInstance->setResolverInstance($resolverInstance); diff --git a/inc/classes/main/controller/default/class_LocalDefaultNewsController.php b/inc/classes/main/controller/default/class_WebDefaultNewsController.php similarity index 90% rename from inc/classes/main/controller/default/class_LocalDefaultNewsController.php rename to inc/classes/main/controller/default/class_WebDefaultNewsController.php index 90d3ec7..dd3b369 100644 --- a/inc/classes/main/controller/default/class_LocalDefaultNewsController.php +++ b/inc/classes/main/controller/default/class_WebDefaultNewsController.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class LocalDefaultNewsController extends BaseController implements Controller { +class WebDefaultNewsController extends BaseController implements Controller { /** * Instance of a CommandResolver class */ @@ -52,9 +52,9 @@ class LocalDefaultNewsController extends BaseController implements Controller { * @param $resolverInstance An instance of a command resolver class * @return $controllerInstance A prepared instance of this class */ - public final static function createLocalDefaultNewsController (CommandResolver $resolverInstance) { + public final static function createWebDefaultNewsController (CommandResolver $resolverInstance) { // Create the instance - $controllerInstance = new LocalDefaultNewsController(); + $controllerInstance = new WebDefaultNewsController(); // Set the command resolver $controllerInstance->setResolverInstance($resolverInstance); @@ -81,7 +81,7 @@ class LocalDefaultNewsController extends BaseController implements Controller { * @return void */ public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) { - // Get the command instance + // Get the command instance from the resolver by sending a request instance to the resolver $commandInstance = $this->resolverInstance->resolvCommandByRequest($requestInstance); // Get the news page variable from the request instance -- 2.39.5