[turba] Add Contacts via Script
Jan Schneider
jan at horde.org
Tue May 26 15:27:19 UTC 2009
Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>
> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>>
>>>
>>> Quoting David <david at guatcom.net>:
>>>
>>>> Hello;
>>>>
>>>> I have a registration form in another part of my site, and would like to
>>>> automatically add new users' information to my address book upon
>>>> registration.
>>>>
>>>> Looking at the mysql tables, it seems pretty straightforward; Is there
>>>> any reason I *shouldn't* simply do a mysql insert with the correct data
>>>> into the 'turba_objects' table?
>>>>
>>>> I read in some other mail that the 'object_id' and 'object_uid' fields
>>>> should be unique; Are there any other stipulations or standards for the
>>>> data in these fields I should adhere to?
>>>
>>>
>>> Why not use the turba API to insert the entries? Specifically,
>>> _turba_import() in turba/lib/api.php
>>
>> I guess adding them directly to SQL is simpler. ;-)
>> And to answer the OP question, that should work fine.
>
> Won't that bypass the History stuff? Though I guess that's only an
> issue with Syncing?
True.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/turba/attachments/20090526/2ee3ca00/attachment.bin>
More information about the turba
mailing list