- public function fields()
- {
- global $globals;
- return "u.user_id AS id, u.*, d.promo_display,
- u.perms != 'pending' AS inscrit,
- u.perms != 'pending' AS wasinscrit,
- u.deces != 0 AS dcd, u.deces, u.matricule_ax,
- FIND_IN_SET('femme', u.flags) AS sexe,
- je.name AS entreprise, je.url AS job_web, es.name AS secteur, ef.fonction_fr AS fonction,
- IF(n1.nat = '', n1.pays, n1.nat) AS nat1, n1.a2 AS iso3166_1,
- IF(n2.nat = '', n2.pays, n2.nat) AS nat2, n2.a2 AS iso3166_2,
- IF(n3.nat = '', n3.pays, n3.nat) AS nat3, n3.a2 AS iso3166_3,
- IF(ede0.abbreviation = '', ede0.name, ede0.abbreviation) AS eduname0, ede0.url AS eduurl0,
- IF(edd0.abbreviation = '', edd0.degree, edd0.abbreviation) AS edudegree0,
- edu0.grad_year AS edugrad_year0, f0.field AS edufield0, edu0.program AS eduprogram0,
- IF(ede1.abbreviation = '', ede1.name, ede1.abbreviation) AS eduname1, ede1.url AS eduurl1,
- IF(edd1.abbreviation = '', edd1.degree, edd1.abbreviation) AS edudegree1,
- edu1.grad_year AS edugrad_year1, f1.field AS edufield1, edu1.program AS eduprogram1,
- IF(ede2.abbreviation = '', ede2.name, ede2.abbreviation) AS eduname2, ede2.url AS eduurl2,
- IF(edd2.abbreviation = '', edd2.degree, edd2.abbreviation) AS edudegree2,
- edu2.grad_year AS edugrad_year2, f2.field AS edufield2, edu2.program AS eduprogram2,
- IF(ede3.abbreviation = '', ede3.name, ede3.abbreviation) AS eduname3, ede3.url AS eduurl3,
- IF(edd3.abbreviation = '', edd3.degree, edd3.abbreviation) AS edudegree3,
- edu3.grad_year AS edugrad_year3, f3.field AS edufield3, edu3.program AS eduprogram3,
- adr.city, gp.a2, gp.pays AS countrytxt, gr.name AS region,
- (COUNT(em.email) > 0 OR FIND_IN_SET('googleapps', u.mail_storage) > 0) AS actif,
- nd.display AS name_display, nd.tooltip AS name_tooltip, nd.sort AS name_sort" .
- (S::logged() ? ", c.contact AS contact" : '');
- }
-
- public function joins()