I try to import user with ezselection attributes. If we suppose that we have an attribute called 'genre' wich can take 'male' or 'female' as option values (only one can be selected), what will be ecactly the code to store this attribute in php ?
The value in 'data_text' should be an integer. If you have to options it would likely be 0 or 1. Whitch is 'male' and which is 'female' is controlled by you in the (content)classdefenition.
This has been answered already, but Laurent mailed me about this subject and I've send him a mail. So I'll post my reply here too, just as a future reference:
eZSelection stores it's value in data_text. But it stores the internal id of the option, not the option's name as many people think. So you'll have to lookup the id corresponding to your option name in the attribute's class attribute's content.