Merge pull request #2423 from eileenmcnaughton/CRM-14139-static
[civicrm-core.git] / xml / schema / Core / Menu.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Menu</class>
6 <name>civicrm_menu</name>
7 <comment>Table to store menu items for all civicrm components.</comment>
8 <add>1.1</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <add>2.1</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>domain_id</name>
21 <type>int unsigned</type>
22 <required>true</required>
23 <comment>Which Domain is this menu item for</comment>
24 <add>3.0</add>
25 </field>
26 <foreignKey>
27 <name>domain_id</name>
28 <table>civicrm_domain</table>
29 <key>id</key>
30 <add>3.0</add>
31 </foreignKey>
32 <field>
33 <name>path</name>
34 <type>varchar</type>
35 <length>255</length>
36 <comment>Path Name</comment>
37 <add>2.1</add>
38 </field>
39 <index>
40 <name>UI_path_domain_id</name>
41 <fieldName>path</fieldName>
42 <fieldName>domain_id</fieldName>
43 <unique>true</unique>
44 <add>2.1</add>
45 </index>
46 <field>
47 <name>path_arguments</name>
48 <type>text</type>
49 <comment>Arguments to pass to the url</comment>
50 <add>2.1</add>
51 </field>
52 <field>
53 <name>title</name>
54 <type>varchar</type>
55 <length>255</length>
56 <comment>Menu Title</comment>
57 <add>2.1</add>
58 </field>
59 <field>
60 <name>access_callback</name>
61 <type>varchar</type>
62 <length>255</length>
63 <comment>Function to call to check access permissions</comment>
64 <add>2.1</add>
65 </field>
66 <field>
67 <name>access_arguments</name>
68 <type>text</type>
69 <comment>Arguments to pass to access callback</comment>
70 <add>2.1</add>
71 </field>
72 <field>
73 <name>page_callback</name>
74 <type>varchar</type>
75 <length>255</length>
76 <comment>function to call for this url</comment>
77 <add>2.1</add>
78 </field>
79 <field>
80 <name>page_arguments</name>
81 <type>text</type>
82 <comment>Arguments to pass to page callback</comment>
83 <add>2.1</add>
84 </field>
85 <field>
86 <name>breadcrumb</name>
87 <type>text</type>
88 <comment>Breadcrumb for the path.</comment>
89 <add>2.1</add>
90 </field>
91 <field>
92 <name>return_url</name>
93 <type>varchar</type>
94 <length>255</length>
95 <comment>Url where a page should redirected to, if next url not known.</comment>
96 <add>2.1</add>
97 </field>
98 <field>
99 <name>return_url_args</name>
100 <type>varchar</type>
101 <length>255</length>
102 <comment>Arguments to pass to return_url</comment>
103 <add>2.1</add>
104 </field>
105 <field>
106 <name>component_id</name>
107 <type>int unsigned</type>
108 <comment>Component that this menu item belongs to</comment>
109 <add>2.1</add>
110 <pseudoconstant>
111 <table>civicrm_component</table>
112 <keyColumn>id</keyColumn>
113 <labelColumn>name</labelColumn>
114 </pseudoconstant>
115 <html>
116 <type>Select</type>
117 </html>
118 </field>
119 <foreignKey>
120 <name>component_id</name>
121 <table>civicrm_component</table>
122 <key>id</key>
123 <add>2.1</add>
124 </foreignKey>
125 <field>
126 <name>is_active</name>
127 <type>boolean</type>
128 <comment>Is this menu item active?</comment>
129 <add>2.1</add>
130 </field>
131 <field>
132 <name>is_public</name>
133 <type>boolean</type>
134 <comment>Is this menu accessible to the public?</comment>
135 <add>2.1</add>
136 </field>
137 <field>
138 <name>is_exposed</name>
139 <type>boolean</type>
140 <comment>Is this menu exposed to the navigation system?</comment>
141 <add>2.1</add>
142 </field>
143 <field>
144 <name>is_ssl</name>
145 <type>boolean</type>
146 <comment>Should this menu be exposed via SSL if enabled?</comment>
147 <add>2.1</add>
148 </field>
149 <field>
150 <name>weight</name>
151 <type>int</type>
152 <required>true</required>
153 <default>1</default>
154 <comment>Ordering of the menu items in various blocks.</comment>
155 <add>2.1</add>
156 </field>
157 <field>
158 <name>type</name>
159 <type>int</type>
160 <required>true</required>
161 <default>1</default>
162 <comment>Drupal menu type.</comment>
163 <add>2.1</add>
164 </field>
165 <field>
166 <name>page_type</name>
167 <type>int</type>
168 <required>true</required>
169 <default>1</default>
170 <comment>CiviCRM menu type.</comment>
171 <add>2.1</add>
172 </field>
173 <field>
174 <name>skipBreadcrumb</name>
175 <type>boolean</type>
176 <comment>skip this url being exposed to breadcrumb</comment>
177 <add>2.2</add>
178 </field>
179 </table>