[turba] Adding additional backend fields to each Turba contact
Alex Ng
ngstylez at gmail.com
Fri Nov 25 09:02:04 PST 2005
Thanks Jan.
That was just a literal example actually. I was thinking about adding the
domain of the authenticated user into it's own field actually.
I think I actually figured it out.
I added the following to the add() in /turba/lib/Driver.php
if (!isset($attributes['__domain'])) {
$attributes['__domain'] = Auth::getAuthDomain();
}
I think this worked.
My final goal was to display all Turba contacts that belonged to a
particular domain. I initally tought to specify this from parsing the
owner_id to get just the domain portion in which I attempted to specify into
the 'strict' parameter. I couldn't figure it out, so I went ahead and
created a new field instead.
Thanks,
-Alex
On 11/25/05, Jan Schneider <jan at horde.org> wrote:
>
> Zitat von Alex Ng <ngstylez at gmail.com>:
>
> > I am trying to add an additional backend field to each Turba contact.
> >
> > I have added an additional field to the turba_objects table of the horde
> > database already called "added_by_user" to record the current
> authenticated
> > user who adds the contact.
>
> What does that give you compared to the owner_id column?
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> --
> Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>
More information about the turba
mailing list