[turba] [api] $registry->contacts->search

Jonah Dekeyzer jonah at menzz.be
Sat Sep 14 14:33:44 UTC 2013


I want to make use of the turba API in order to search for items in my 
adresbook in an own module 'advocaat'.

Turba has an adresbook with the sourcename 'advocaat' with several contacts.

When I use the contacts->search api I get en empty result, even looking 
for 'a' .

My php-file looks like this:
<?php
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('advocaat');
$term = $_GET['term'];
$args = array('sources' => array('advocaat'),
               'names' => array('a'),
               );

$cns = $registry->contacts->search($args);


Has my code an error?



Regards,


Jonah


More information about the turba mailing list