Пример #1
0
 /**
  * generate the where clause (used in match contacts and permissions)
  *
  * @param array $params
  * @param array $fields
  * @param array $tables
  * @param boolean $strict
  *
  * @return string
  * @access public
  * @static
  */
 static function getWhereClause($params, $fields, &$tables, &$whereTables, $strict = FALSE)
 {
     $query = new CRM_Contact_BAO_Query($params, NULL, $fields, FALSE, $strict);
     $tables = array_merge($query->tables(), $tables);
     $whereTables = array_merge($query->whereTables(), $whereTables);
     return $query->_whereClause;
 }
Пример #2
0
 /**
  * generate the where clause (used in match contacts and permissions)
  *
  * @param array $params
  * @param array $fields
  * @param array $tables
  * @param boolean $strict
  * 
  * @return string
  * @access public
  * @static
  */
 function getWhereClause($params, $fields, &$tables, &$whereTables, $strict = false)
 {
     $query = new CRM_Contact_BAO_Query($params, null, $fields, false, $strict);
     $tables = array_merge($query->tables(), $tables);
     $whereTables = array_merge($query->whereTables(), $whereTables);
     return $query->_whereClause;
 }