1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contact
</base>
5 <class>SavedSearch
</class>
6 <name>civicrm_saved_search
</name>
7 <comment>Users can save their complex SQL queries and use them later.
</comment>
8 <icon>fa-search-plus
</icon>
12 <type>int unsigned
</type>
13 <title>Saved Search ID
</title>
14 <required>true
</required>
15 <comment>Saved Search ID
</comment>
23 <autoincrement>false
</autoincrement>
28 <title>Saved Search Name
</title>
31 <default>NULL
</default>
32 <comment>Unique name of saved search
</comment>
40 <fieldName>name
</fieldName>
47 <title>Saved Search Label
</title>
50 <default>NULL
</default>
51 <comment>Administrative label for search
</comment>
60 <name>form_values
</name>
61 <title>Submitted Form Values
</title>
64 <comment>Submitted form values for this search
</comment>
65 <serialize>PHP
</serialize>
70 <name>mapping_id
</name>
71 <type>int unsigned
</type>
72 <title>Mapping ID
</title>
73 <comment>Foreign key to civicrm_mapping used for saved search-builder searches.
</comment>
75 <label>Mapping
</label>
80 <name>mapping_id
</name>
81 <table>civicrm_mapping
</table>
83 <onDelete>SET NULL
</onDelete>
88 <name>search_custom_id
</name>
89 <type>int unsigned
</type>
90 <title>Option Value ID
</title>
91 <comment>Foreign key to civicrm_option value table used for saved custom searches.
</comment>
96 <name>where_clause
</name>
98 <title>Where Clause
</title>
99 <comment>the sql where clause if a saved search acl
</comment>
105 <name>select_tables
</name>
107 <title>Select Tables
</title>
108 <comment>the tables to be included in a select data
</comment>
109 <serialize>PHP
</serialize>
115 <name>where_tables
</name>
117 <title>Where Tables
</title>
118 <comment>the tables to be included in the count statement
</comment>
119 <serialize>PHP
</serialize>
125 <name>api_entity
</name>
127 <title>Entity Name
</title>
129 <comment>Entity name for API based search
</comment>
132 <callback>CRM_Contact_BAO_SavedSearch::getApiEntityOptions
</callback>
137 <name>api_params
</name>
139 <title>API Parameters
</title>
140 <comment>Parameters for API based search
</comment>
141 <serialize>JSON
</serialize>
145 <name>created_id
</name>
146 <type>int unsigned
</type>
147 <title>Created By Contact ID
</title>
148 <comment>FK to contact table.
</comment>
150 <label>Created By
</label>
152 <readonly>true
</readonly>
156 <name>created_id
</name>
157 <table>civicrm_contact
</table>
160 <onDelete>SET NULL
</onDelete>
163 <name>modified_id
</name>
164 <type>int unsigned
</type>
165 <title>Modified By Contact ID
</title>
166 <comment>FK to contact table.
</comment>
168 <label>Modified By
</label>
170 <readonly>true
</readonly>
174 <name>modified_id
</name>
175 <table>civicrm_contact
</table>
178 <onDelete>SET NULL
</onDelete>
181 <name>expires_date
</name>
182 <type>timestamp
</type>
183 <title>Search Expiry Date
</title>
184 <required>false
</required>
185 <comment>Optional date after which the search is not needed
</comment>
189 <name>created_date
</name>
190 <type>timestamp
</type>
191 <comment>When the search was created.
</comment>
192 <required>true
</required>
193 <default>CURRENT_TIMESTAMP
</default>
194 <readonly>true
</readonly>
198 <name>modified_date
</name>
199 <type>timestamp
</type>
200 <comment>When the search was last modified.
</comment>
201 <required>true
</required>
202 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
204 <readonly>true
</readonly>
207 <name>description
</name>
209 <title>Saved Search Description
</title>
211 <type>TextArea
</type>