php-epp-client
php-epp-client copied to clipboard
Added the function getPollRes
Return the records inside getPollRes, used by DNS Belgium.
Hi Sjors,
I would appreciate it if you would create 4 separate functions for the 4 separate fields that this function is returning, instead of an array.
I understand that it is convenient to return all in one array, but you have to understand the implications if one of the 4 fields is not returned by the registry - the whole function might fail.
If you return the fields in 4 separate functions, each with their own name, the users of PHP-EPP-CLIENT can decide for themselves which fields they want to retrieve and use them.
Also, please add code so that when a field does not exist a null value is returned, instead of an error message.