Fonction pour récupérer les valeurs définies dans les colonnes
This commit is contained in:
parent
23166356d4
commit
eb58f69819
@ -14,13 +14,13 @@ class Enrichissement
|
||||
'siren' => array(), //Obligatoire
|
||||
'nic' => array(), //Obligatoire
|
||||
'actif' => array(
|
||||
'value' => array(
|
||||
'values' => array(
|
||||
'1' => "actif",
|
||||
'0' => "inactif",
|
||||
)
|
||||
),
|
||||
'siege' => array(
|
||||
'value' => array(
|
||||
'values' => array(
|
||||
'1' => "Etablissement Siege",
|
||||
'0' => "Etablissement Secondaire",
|
||||
)
|
||||
@ -210,9 +210,14 @@ class Enrichissement
|
||||
return $this->fields;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function getColumnValue($key)
|
||||
{
|
||||
if ( array_key_exists($key, $this->columns) ) {
|
||||
if ( array_key_exists('values', $this->columns[$key]) && count($this->columns[$key]['values'])>0 ){
|
||||
return $this->columns[$key]['values'];
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user