|
|
|
|
|
|
|
|
$fieldArray = []; |
|
|
$fieldArray = []; |
|
|
foreach($configureFieldArray as $fieldName) { |
|
|
foreach($configureFieldArray as $fieldName) { |
|
|
if(isset($allFieldArray[$fieldName])) { |
|
|
if(isset($allFieldArray[$fieldName])) { |
|
|
$fieldArray[] = $allFieldArray[$fieldName]; |
|
|
|
|
|
|
|
|
$fieldArray[$fieldName] = $allFieldArray[$fieldName]; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw new \ErrorException('Le field "'.$fieldName.'" n\'est pas défini dans configureFields()'); |
|
|
throw new \ErrorException('Le field "'.$fieldName.'" n\'est pas défini dans configureFields()'); |