[doc] format of $_prefs hash
hasis hasis
hasis053341 at gmail.com
Thu Mar 31 19:24:20 UTC 2011
On Thu, Mar 31, 2011 at 3:43 PM, Jan Schneider <jan at horde.org> wrote:
>
> Please keep the discussion on the mailing list.
I'm sorry. This mailing list stuff is quite new to me.
>
>
> Zitat von hasis hasis <hasis053341 at gmail.com>:
>
> On Thu, Mar 31, 2011 at 1:53 PM, Jan Schneider <jan at horde.org> wrote:
>>
>> Zitat von hasis hasis <hasis053341 at gmail.com>:
>>>
>>> Hello,
>>> is the format of $_prefs hash documented somewhere? I have just found
>>> TODO
>>> in file lib/horde/Prefs.php:
>>> * TODO: document the format of the $_prefs hash here
>>>
>>> Thank you.
>>>
>>> Matej Hasul
>>>
>>>
>>> It's documented in config/prefs.php
>>>
>>> Jan.
>>>
>>> --
>>> Do you need professional PHP or Horde consulting?
>>> http://horde.org/consulting/
>>>
>>> __
>>> doc mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: doc-unsubscribe at lists.horde.org
>>>
>>>
>>> Thanks for response. I was looking to horde/config/prefs.php in git, but
>> can`t find it. I`m interested in format of $_pref *hash*, not $_prefs
>> array
>> attributes. What is format of "value" attribute in following example:
>>
>> // alarm methods
>> $_prefs['event_alarms'] = array(
>> //'value' => 'a:1:{s:6:"notify";a:0:{}}',
>> 'value' =>
>> 'a:1:{s:4:"mail";a:2:{s:6:"__desc";s:0:"";s:5:"email";s:0:"";}}',
>> 'locked' => false,
>> 'shared' => false,
>> 'type' => 'alarm',
>> 'desc' => _("Choose how you want to receive reminders for events with
>> alarms:")
>> );
>>
>
> Array *are* hashes in PHP.
>
> Or are you talking about 'a:1:{s:6:"notify";a:0:{}}'? This is a serialized
> PHP value: http://php.net/serialize
>
>
Yes! PHP serialized value - that is what I needed to know.
Thank you veru much.
Regards
Matej Hasul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.horde.org/archives/doc/attachments/20110331/735c84ab/attachment.html>
More information about the doc
mailing list