Documentation

CMenu Class

CMenu class is used to handle menu.

Class properties

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

Class methods

MethodDescription Available from version
CMenu (constructor) 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.


© «Bitrix24», 2001-2024