Bitrix Site Manager

CMenu

CMenu is the class to handle menu.

Properties

ParameterDescription
type Menu type.
arMenu An array of menu items (available only after CMenu::Init).
MenuDir Folder containing file with menu items and parameters (available only after CMenu::Init).
template Path to file with template (available only after CMenu::Init).

Methods

MethodDescription
CMenu Initializes a menu of the specified type.
Init Searches for a menu recursively starting from the folder.
GetMenuHtml Returns the HTML code that can be used to display a menu. 
GetMenuHtmlEx Returns the HTML code that can be used to display a menu. 

See Also