34 lines
849 B
PHP
34 lines
849 B
PHP
<?php
|
|
class SdMetier_Rnvp_Process
|
|
{
|
|
public function __construct() {}
|
|
|
|
/**
|
|
* Libelle de traitement
|
|
* @param string $code
|
|
* @param string $correction
|
|
*/
|
|
public function getLabel($code, $correction)
|
|
{
|
|
$label = '';
|
|
switch($code) {
|
|
case 'ND':
|
|
$label = "ND";
|
|
break;
|
|
case 'KO':
|
|
$label = "KO";
|
|
break;
|
|
case 'OK':
|
|
$label = "Adresse correcte";
|
|
if ($correction == 'I') {
|
|
$label = "Adresse avec correction(s) importante(s)";
|
|
}
|
|
if ($rnvpResult->CorrectionDouteuse == 'D') {
|
|
$label = "Adresse mais correction(s) douteuse(s)";
|
|
}
|
|
break;
|
|
}
|
|
|
|
return $label;
|
|
}
|
|
} |