245,7 → 245,7 |
*/ |
public function consulterGroupesChampsEtendusPredefinis() { |
$groupes = array(); |
$requete = "SELECT cc.cle as cle_groupe, cc.label as nom_groupe, ccc.cle as cle_champ, ccc.label as label_champ, ccc.invisible ". |
$requete = "SELECT cc.cle as cle_groupe, cc.label as nom_groupe, ccc.cle as cle_champ, ccc.label as label_champ, ccc.invisible, ccc.prive ". |
"FROM `cel_catalogue_champs_etendus` cc ". |
"INNER JOIN cel_catalogue_champs_etendus_liaison cl ON cc.cle = cl.groupe ". |
"INNER JOIN cel_catalogue_champs_etendus ccc ON ccc.cle = cl.champ"; |
278,7 → 278,9 |
$infos_groupe['champs'][] = array( |
'cle' => $groupe_champ['cle_champ'], |
'label' => $groupe_champ['label_champ'], |
'options' => array('invisible' => $groupe_champ['invisible']) |
'options' => array('invisible' => $groupe_champ['invisible'], |
'prive' => $groupe_champ['prive'] |
) |
); |
} |
|
296,7 → 298,7 |
* Renvoie le catalogue des champs étendus |
*/ |
public function consulterCatalogueChampsEtendusPredefinis($ordonner_par_cle = false) { |
$requete = "SELECT cle, label, invisible ". |
$requete = "SELECT cle, label, invisible, prive ". |
"FROM cel_catalogue_champs_etendus cc "; |
|
$catalogue = Cel::db()->executerRequete($requete); |
306,7 → 308,9 |
$champ_fmt = array( |
'cle' => $champ['cle'], |
'label' => $champ['label'], |
'options' => array('invisible' => $champ['invisible']) |
'options' => array('invisible' => $champ['invisible'], |
'prive' => $champ['prive'] |
) |
); |
if($ordonner_par_cle) { |
$infos_champs[$champ_fmt['cle']] = $champ_fmt; |
326,6 → 330,8 |
* @return string la clé correspondante |
*/ |
public function transformerLabelEnCle($label) { |
//TODO: cette fonction est elle encore pertinente |
// maintenant que la notion de label est supprimée ? |
$cle = strtolower(trim($label)); |
|
// Suppression des mots inutiles |