com.dpci.constituentsonly/CRM/ConstituentsOnly/BAO/Query.php

47 lines
909 B
PHP
Raw Normal View History

2018-08-30 12:15:52 +00:00
<?php
class CRM_ConstituentsOnly_BAO_Query extends CRM_Contact_BAO_Query_Interface {
static $_networkFields = array();
public function &getFields() {
return self::$_networkFields;
}
2018-08-30 12:21:44 +00:00
public function select(&$query) {
}
2018-08-30 12:15:52 +00:00
/**
* Build where clause for ConstituentsOnly
*
* @return void
* @access public
*/
public function where(&$query) {
$grouping = 0;
$statement = "NOT (contact_a.do_not_trade <=> 1)";
$query->_where[$grouping][] = $statement;
}
public function from($name, $mode, $side) {
$from = NULL;
return $from;
}
public function setTableDependency(&$tables) {
}
public function getPanesMapper(&$panes) {
}
public function registerAdvancedSearchPane(&$panes) {
}
public function buildAdvancedSearchPaneForm(&$form, $type) {
}
public function setAdvancedSearchPaneTemplatePath(&$paneTemplatePathArray, $type) {
}
}