fixed PHP 5 strict warnings, changes for eZ Publish 4 API, moved global constants into the datatype class