|
||||
[previous page]  |  [up one level]  |  [next page] | ||||
|
ZenMenuItem
package : ZenEngine/Core
Author : Bruno Desthuilliers Version : 0.0.5 public class ZenMenuItemA menu entry, either a Document or Category (no associated document)A menu item is mainly a data object... But it's a very important one, because it gets carried all over the code, and is used by many components... Functionspublic void ZenMenuItemAssign the values to member data
Parameters : string $key string $caption string $level string $templatePage : null if it's a category string $docType : null if it's a category string $docQueryData : null if it's a category Return : (void) public string getKeyReturn the key
Return : (string) public string getCaptionReturn the caption
Return : (string) public integer getLevelReturn the level
Return : (integer) public string getTemplatePageReturn the template page
Return : (string) public mixed getDocTypeReturn the doc type code used by the contentManager to call the appropriate docMaker
Return : (mixed) public string getDocQueryDataReturn the data used by the docMaker to retrieve the document
Return : (string) public boolean isDocReturn true if this entry is a document, false if it's a category
Return : (boolean) public string getHRefReturn the href for the associated document
The href has the form : $templatePage?key=$key no href for category items. Return : (string) variablesprivate string $_keythe key for this item (yes, it's repeated in the menu item itself)private string $_captionThe caption used when displaying the menu itemprivate string $_templatePageThe 'template' php page to use for the associated documentprivate mixed $_docTypeThe doc type code used by the content manager to call the appropriate docMakerThe code is up to the MenuMaker and the site config. The ZenFS package uses the files (or directory) extension as docType private mixed $_docQueryDataData used by the docMaker to retrieve the document.Note that the content of this is left at the discretion of the implementors of the MenuMaker and the DocMaker - so you'd better have a docMaker and a menuMaker designed to work together. private integer $_levelNesting level of this menu item |
|||
[previous page]  |  [up one level]  |  [next page] |