Documentation
getValue
usage
string $value = $data->getValue( string $fieldName )
paramètres
fieldName : the name of the field you want to know
retourne
the value of the field. If a new value is set in the command (UPDATE), this new value will be returned. If no new value was indicated, the former value will be returned.
exemples
class ContactProcessor{
function resetInvalidity( /* ModuleProcessingData */ $data ){
if($data->getFormerValue('EMAIL1') != $data->getValue('EMAIL1')){
$data->setValue('EMAILINVALID',0);
}
}
}