1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>OptionValue
</class>
6 <name>civicrm_option_value
</name>
11 <title>Option Value ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>Option ID
</comment>
19 <autoincrement>true
</autoincrement>
22 <name>option_group_id
</name>
23 <title>Option Group ID
</title>
24 <type>int unsigned
</type>
25 <required>true
</required>
26 <comment>Group which this option belongs to.
</comment>
29 <table>civicrm_option_group
</table>
30 <keyColumn>id
</keyColumn>
31 <labelColumn>name
</labelColumn>
38 <name>option_group_id
</name>
39 <table>civicrm_option_group
</table>
42 <onDelete>CASCADE
</onDelete>
46 <title>Option Label
</title>
48 <required>true
</required>
50 <localizable>true
</localizable>
51 <comment>Option string as displayed to users - e.g. the label in an HTML OPTION tag.
</comment>
56 <title>Option Value
</title>
59 <required>true
</required>
60 <comment>The actual value stored (as a foreign key) in the data record. Functions which need lookup option_value.title should use civicrm_option_value.option_group_id plus civicrm_option_value.value as the key.
</comment>
66 <title>Option Name
</title>
70 <comment>Stores a fixed (non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.
</comment>
75 <title>Option Grouping Name
</title>
78 <comment>Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for college_interest field, to differentiate partners from non-partners.
</comment>
83 <type>int unsigned
</type>
84 <comment>Bitwise logic can be used to create subsets of options within an option_group for different uses.
</comment>
88 <name>is_default
</name>
91 <comment>Is this the default option for the group?
</comment>
96 <type>int unsigned
</type>
97 <required>true
</required>
98 <comment>Controls display sort order.
</comment>
102 <name>description
</name>
105 <type>TextArea
</type>
109 <localizable>true
</localizable>
110 <comment>Optional description.
</comment>
114 <name>is_optgroup
</name>
117 <comment>Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?
</comment>
121 <name>is_reserved
</name>
124 <comment>Is this a predefined system object?
</comment>
128 <name>is_active
</name>
129 <title>Option Is Active
</title>
132 <comment>Is this option active?
</comment>
136 <name>component_id
</name>
137 <type>int unsigned
</type>
138 <comment>Component that this option value belongs/caters to.
</comment>
141 <table>civicrm_component
</table>
142 <keyColumn>id
</keyColumn>
143 <labelColumn>name
</labelColumn>
150 <name>component_id
</name>
151 <table>civicrm_component
</table>
156 <name>domain_id
</name>
157 <type>int unsigned
</type>
159 <table>civicrm_domain
</table>
160 <keyColumn>id
</keyColumn>
161 <labelColumn>name
</labelColumn>
163 <comment>Which Domain is this option value for
</comment>
167 <name>domain_id
</name>
168 <table>civicrm_domain
</table>
173 <name>visibility_id
</name>
174 <type>int unsigned
</type>
175 <default>NULL
</default>
179 <name>index_option_group_id_value
</name>
180 <fieldName length=
"128">value
</fieldName>
181 <fieldName>option_group_id
</fieldName>
185 <name>index_option_group_id_name
</name>
186 <fieldName length=
"128">name
</fieldName>
187 <fieldName>option_group_id
</fieldName>