(select cr.contact_id_b from civicrm_relationship cr where (cr.contact_id_a = cgc.contact_id AND (cr.relationship_type_id = 7 OR cr.relationship_type_id = 6))),
cgc.contact_id )";
$clause[] = "contact_a.contact_type IN ('Individual','Household')";
-
+
if ($this->_aclWhere) {
$clause[] = " {$this->_aclWhere} ";
}
-
+
if (!empty($clause)) {
$where = implode(' AND ', $clause);
}
$where .= " AND contact_a.is_deleted != 1 ";
$where .= "{$this->_where}";
-
+
if ($this->_aclWhere) {
$where .= " AND {$this->_aclWhere} ";
}
-
+
return $this->whereClause($where, $params);
}
*/
public function where($includeContactIDs = FALSE) {
$where = '(1)';
-
+
if ($this->_aclWhere) {
$where = " AND {$this->_aclWhere} ";
}
-
+
return '(1)';
}
$params[$count] = array($state, 'Integer');
$clause[] = "state_province.id = %{$count}";
}
-
+
if ($this->_aclWhere) {
$clause[] = " AND {$this->_aclWhere} ";
}