| Summary | Add method to set a menu mask. |
| Queue | Horde Framework Packages |
| Queue Version | Git master |
| Type | Enhancement |
| State | Resolved |
| Priority | 1. Low |
| Owners | jan (at) horde (dot) org |
| Requester | vilius (at) lnk (dot) lt |
| Created | 05/14/2011 (5291 days ago) |
| Due | |
| Updated | 06/28/2011 (5246 days ago) |
| Assigned | |
| Resolved | 06/28/2011 (5246 days ago) |
| Milestone | |
| Patch | Yes |
Assigned to Jan Schneider
State ⇒ Resolved
outside the application. Make sure you require Horde_Core 1.3.0 if you
want to use this in Ulaform.
Add method to set a menu mask.
Request: 10078Signed-off-by: Jan Schneider <jan@horde.org>
1 files changed, 10 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/3710e91d1c1f7c819acbf8276ae51f2e0f3880f6
Horde::menu(array('mask' => ..))
http://git.horde.org/co.php/ulaform/lib/Application.php?rt=horde-git&ws=1&r=836db350ef8cea4900a0b29a15ebe63b8431bb1e
I did not found any other way how to set masking cleanly. The only
solution would be to construct the menu in every controller script
like here:
http://git.horde.org/diff.php/passwd/templates/main/main.inc?rt=horde-git&ws=1&r1=caa9c90cec2ac47b89d089316818071295786424
Given that Ulaform has more menu buttons and you must include things
like sidebar, etc. in every script this looked not right. But maybe
it's just me?
*outside* of the application, e.g. preference screens.
parameters are set in -*_Application::menu() and then called with
simple Horde::menu() in controller scripts. So I thought that setting
a mask there should be cleaner.
*_Application::menu() is for generating application menus from
*outside* of the application, e.g. preference screens.
application's Application.php menu() method. I'm assuming this is a
standard way to create a menu now, right?
State ⇒ Feedback
State ⇒ New
New Attachment: 0009-Add-method-to-set-a-menu-mask.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Add method to set a menu mask.
Type ⇒ Enhancement
Priority ⇒ 1. Low