public static function getAddressbookSearchParams()
{
$src = json_decode($GLOBALS['prefs']->getValue('search_sources'));
if (!is_array($src)) {
$src = array();
}
$fields = json_decode($GLOBALS['prefs']->getValue('search_fields'), true);
if (!is_array($fields)) {
$fields = array();
}
return array('fields' => $fields, 'sources' => $src);
}