From: Roland Häder Date: Sun, 30 Aug 2009 02:03:10 +0000 (+0000) Subject: Menu calls added (stubs) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1324b879f1d6d75c95be4a5da9dcdcc8c9a01557;p=core.git Menu calls added (stubs) --- diff --git a/inc/classes/main/commands/web/class_WebConfirmCommand.php b/inc/classes/main/commands/web/class_WebConfirmCommand.php index 220ae5ce..6b0a7812 100644 --- a/inc/classes/main/commands/web/class_WebConfirmCommand.php +++ b/inc/classes/main/commands/web/class_WebConfirmCommand.php @@ -113,6 +113,12 @@ class WebConfirmCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('confirm_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebHomeCommand.php b/inc/classes/main/commands/web/class_WebHomeCommand.php index 56e112ef..f9b6b97f 100644 --- a/inc/classes/main/commands/web/class_WebHomeCommand.php +++ b/inc/classes/main/commands/web/class_WebHomeCommand.php @@ -99,6 +99,12 @@ class WebHomeCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('home_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebLoginAreaCommand.php b/inc/classes/main/commands/web/class_WebLoginAreaCommand.php index 8eb65a93..15ef12d8 100644 --- a/inc/classes/main/commands/web/class_WebLoginAreaCommand.php +++ b/inc/classes/main/commands/web/class_WebLoginAreaCommand.php @@ -136,6 +136,12 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('login_area_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebLoginCommand.php b/inc/classes/main/commands/web/class_WebLoginCommand.php index 981ad63a..2fc7deec 100644 --- a/inc/classes/main/commands/web/class_WebLoginCommand.php +++ b/inc/classes/main/commands/web/class_WebLoginCommand.php @@ -105,6 +105,12 @@ class WebLoginCommand extends BaseCommand implements Commandable, Registerable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('login_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebLoginFailedCommand.php b/inc/classes/main/commands/web/class_WebLoginFailedCommand.php index 1e39413b..1aee707c 100644 --- a/inc/classes/main/commands/web/class_WebLoginFailedCommand.php +++ b/inc/classes/main/commands/web/class_WebLoginFailedCommand.php @@ -102,6 +102,12 @@ class WebLoginFailedCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('login_failed_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebLogoutDoneCommand.php b/inc/classes/main/commands/web/class_WebLogoutDoneCommand.php index 12376483..1cb62fa5 100644 --- a/inc/classes/main/commands/web/class_WebLogoutDoneCommand.php +++ b/inc/classes/main/commands/web/class_WebLogoutDoneCommand.php @@ -102,6 +102,12 @@ class WebLogoutDoneCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('logout_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebRegisterCommand.php b/inc/classes/main/commands/web/class_WebRegisterCommand.php index d72a3acd..d65c23ec 100644 --- a/inc/classes/main/commands/web/class_WebRegisterCommand.php +++ b/inc/classes/main/commands/web/class_WebRegisterCommand.php @@ -106,6 +106,12 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('register_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates. diff --git a/inc/classes/main/commands/web/class_WebStatusCommand.php b/inc/classes/main/commands/web/class_WebStatusCommand.php index f07eb35a..ac64ef5c 100644 --- a/inc/classes/main/commands/web/class_WebStatusCommand.php +++ b/inc/classes/main/commands/web/class_WebStatusCommand.php @@ -100,6 +100,12 @@ class WebStatusCommand extends BaseCommand implements Commandable { // *every* command has a navigation system and that is want we don't want. $menuInstance = ObjectFactory::createObjectByConfiguredName('status_menu_class', array($appInstance)); + // Render the menu + $menuInstance->renderMenu(); + + // Transfer it to the template engine instance + $menuInstance->transferToTemplateEngine($templateInstance); + // ... and all variables. This should be merged together in a pattern // to make things easier. A cache mechanism should be added between // these two calls to cache compiled templates.