 |
CMS
Version 3.9
|
Go to the documentation of this file.
40 class Menu extends DataItem
52 "identifier" => String,
53 "description" => Text,
54 "css_class" => String,
55 "container_css_class" => String,
56 "wrap_menu_items" => Boolean,
57 "highlight_current_item" => Boolean,
58 "highlight_current_section" => Boolean);
66 return $this->getRelated(
Site);
82 return Query::create(
Menu,
"WHERE identifier=:i")
94 return Query::create(
MenuItem,
"WHERE menu_id=:m AND title=:t")
106 return Query::create(
MenuItem,
"WHERE menu_id=:m AND title=:t")
123 "custom_format" => String,
125 "parent_id" => Number,
126 "identifier" => String,
129 "css_class" => String,
130 "sort_order" => Number,
132 "permissions" => String,
133 "published" => Boolean,
134 "required_parameters" => String,
135 "display_flags" => String);
148 $pages = Query::create(
Page,
"WHERE identifier=:i")
149 ->bind(
":i", $this->identifier)
157 ->bind(
":i", $this->identifier)
169 return $this->getRelated(
Menu);
174 if (!$this->parent_id)
return null;
176 return $this->getRelated(
MenuItem,
"parent_id");
181 return query(
MenuItem,
"WHERE parent_id={$this->menu_item_id} $constraint");