- /**
- * Given a saved search compute the clause and the tables
- * and store it for future use
- */
- public function buildClause() {
- $params = [['group', 'IN', [$this->id], 0, 0]];
-
- if (!empty($params)) {
- $tables = $whereTables = [];
- $this->where_clause = CRM_Contact_BAO_Query::getWhereClause($params, NULL, $tables, $whereTables);
- if (!empty($tables)) {
- $this->select_tables = serialize($tables);
- }
- if (!empty($whereTables)) {
- $this->where_tables = serialize($whereTables);
- }
- }
- }
-