Map attribute in the sources
Christian Couder
christian@alcove.fr
Thu, 14 Dec 2000 17:22:04 +0100
Hi all,
Currently the map attribute in the Turba_Source class is defined like
this:
/** Hash describing the mapping between Turba attributes and
driver-specific fields. */
var $map = array();
and in the config/sources.php file it is set like this:
'map' => array(
'__key' => 'uid',
'name' => 'fullname',
'email' => 'email',
'alias' => 'alias'
)
I think we must change this if we want to be able to deal with many
objects from the same source.
For example if we want to deal with a source with both users and lists
we could have something like:
'map' => array(
'user' => array(
'__key' => 'uid',
'name' => 'fullname',
'email' => 'email',
'alias' => 'alias'
),
'list' => array(
'__key' => 'list_id',
'owner' => 'owner_id',
'name' => 'name'
)
)
Regards,
--
Christian COUDER christian@alcove.fr
Ingénieur Informatique Libre
Alcôve - http://www.alcove.fr/