| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
*
* @return array
* contains the search name as value and and id as key
- *
*/
public function getAll() {
$savedSearch = new CRM_Contact_DAO_SavedSearch();
* (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Contact_BAO_SavedSearch
- * @static
*/
public static function retrieve(&$params, &$defaults) {
$savedSearch = new CRM_Contact_DAO_SavedSearch();
*
* @return array
* the values of the posted saved search
- * @static
*/
public static function &getFormValues($id) {
$fv = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_SavedSearch', $id, 'form_values');
*
* @return string
* the where clause for this saved search
- * @static
*/
public static function whereClause($id, &$tables, &$whereTables) {
$params = self::getSearchParams($id);
// this has not yet been implemented
}
else {
- return CRM_Contact_BAO_Query::getWhereClause($params, NULL, $tables, $whereTables);
- }
+ return CRM_Contact_BAO_Query::getWhereClause($params, NULL, $tables, $whereTables);
+ }
}
return NULL;
}
}
else {
$tables = $whereTables = array('civicrm_contact' => 1, 'civicrm_email' => 1);
- $where = CRM_Contact_BAO_SavedSearch::whereClause($id, $tables, $whereTables);
- $from = CRM_Contact_BAO_Query::fromClause($whereTables);
+ $where = CRM_Contact_BAO_SavedSearch::whereClause($id, $tables, $whereTables);
+ $from = CRM_Contact_BAO_Query::fromClause($whereTables);
return array($from, $where);
}
}
$this->where_tables = serialize($whereTables);
}
}
-
- return;
}
public function save() {
*
* @return string
* the name of the saved search
- * @static
*/
public static function getName($id, $value = 'name') {
$group = new CRM_Contact_DAO_Group();
return $savedSearch;
}
+
}