Hi,
maybe var_export() is not the right command, never used it.
$prefs = new preferences($this->recipient->account_id);
$preferences = $prefs->read();
_debug_array($preferences);
should give your all the prefs of that user. It’s an array of array for
each app.
Ralf
Aleksander Adamowski schrieb:
I have one more question which I couldn’t find an answer to in eGW sources.
Given the $preferences variable that holds a user’s preferences object:
$prefs = new preferences($this->recipient->account_id);
$preferences = $prefs->read();
How do I obtain the user’s lang and country? This is needed for
guessing the user’s locale.
Oh, I’ve found ouy using var_export() that this preferences object
holds only data specific to notifications app:
recipient preferences: stdClass::__set_state(array(
‘notification_chain’ => ‘all’,
‘egwpopup_verbosity’ => ‘low’,
‘external_mailclient’ => ‘1’,
))
I need to get to the recipients full preferences, including lang and
country. how to do that?
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers