Inherits DataItem.
Definition at line 40 of file menus.inc.
◆ findByIdentifier()
static Menu::findByIdentifier |
( |
|
$identifier | ) |
|
|
static |
Returns the Menu object that matches the specified identifier.
- Parameters
-
string | $identifier | the identifier of the menu |
- Returns
- Menu the matching menu item
- Exceptions
-
Definition at line 80 of file menus.inc.
82 return Query::create(
Menu,
"WHERE identifier=:i")
◆ getMenuItem()
Menu::getMenuItem |
( |
|
$title | ) |
|
Finds the specified MenuItem within the menu, by title.
- Parameters
-
string | $title | the title of the menu item |
- Returns
- MenuItem the matching menu item
Definition at line 92 of file menus.inc.
94 return Query::create(
MenuItem,
"WHERE menu_id=:m AND title=:t")
◆ menuItemExists()
Menu::menuItemExists |
( |
|
$title | ) |
|
Checks whether the specified menu item exists within the menu.
- Parameters
-
string | $title | the title of the menu item |
- Returns
- boolean true if a matching menu item exists, false otherwise
Definition at line 104 of file menus.inc.
106 return Query::create(
MenuItem,
"WHERE menu_id=:m AND title=:t")
◆ MenuItems()
Menu::MenuItems |
( |
|
$constraint = "" | ) |
|
◆ Site()
Definition at line 64 of file menus.inc.
66 return $this->getRelated(
Site);
◆ $default_format
Menu::$default_format = "{name}" |
◆ $fields
Initial value:= array("menu_id" => Number,
"site_id" => Number,
"name" => String,
"identifier" => String,
"description" => Text,
"css_class" => String,
"container_css_class" => String,
"wrap_menu_items" => Boolean,
"highlight_current_item" => Boolean,
"highlight_current_section" => Boolean)
Definition at line 49 of file menus.inc.
◆ $pretty_class_name
Menu::$pretty_class_name = "Menu" |
◆ $primary_key
Menu::$primary_key = "menu_id" |
◆ $relations
Initial value:
Definition at line 61 of file menus.inc.
◆ $table
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/menu/datamodel/menus.inc