Function churchdb_getAllowedPersonData
get person data
TODO: check how much of the conditions can be put into sql - db is much quicker then php
Parameters summary
string |
$cond = '' |
$cond; additional sql where clause |
string |
$fields = "p.id p_id, gp.id gp_id, name, vorname, spitzname, station_id, status_id, email AS em, IF (telefonhandy='',telefonprivat, telefonhandy) AS tl, geolat AS lat, geolng AS lng, archiv_yn, IF (telegramid is not null, 1, 0) as telegram_yn, date(geburtsdatum) geb" |
$fields; to set sql columns |
Return value summary
array
|
with person objects or nothing |