CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom search, what is from() and where() used for ?
Pages: [1]

Author Topic: Custom search, what is from() and where() used for ?  (Read 905 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Custom search, what is from() and where() used for ?
November 03, 2009, 02:14:16 pm
Hi,

And otherwise, wrote a custom search that search contacts that are Tagged both with a AND b (instead of the default OR). push in the trunk ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom search, what is from() and where() used for ?
November 03, 2009, 07:41:37 pm

they are used when you use a smart group in civimail

we are getting ready to roll out 3.1, so how about u wait till we branch and then push in trunk for 3.2

might be a better option to add this feature to the include/exclude groups/tags custom search and expand it there. will make that a lot more useful and more complete rather than another independent search

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Custom search, what is from() and where() used for ?
November 04, 2009, 08:08:26 am
Sure.

This being said, one of the goal was to have something as simple as possible that can be used as a model for when you have your sql queries (your basic/simple relies on the external features of the search object, but nothing easy to tweak directly).

Might be good to put the php after you fork and not touch the DB to "hide" it ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom search, what is from() and where() used for ?

This forum was archived on 2017-11-26.