Documentation
getNode
usage
XMLNode $node = $data->getNode()
retourne
the XML node representing the NQL command that is executed.
exemples
class ContactProcessor{
function resetPassword( /* ModuleProcessingData */ $data ){
/*
<UPDATE reset-password="true">
<CONTACT ID="...">...</CONTACT>
</UPDATE>
*/
$node = $data->getNode();
$reset = $node->getAttribute('reset-password');
if($reset==='true'){
$data->setValue('PASSWORD','');
}
}
}