[dev] Implicit Prefs
Chuck Hagenbuch
chuck at horde.org
Sat Mar 28 14:41:28 UTC 2009
Quoting Oscar Martin <osc_pan at hotmail.com>:
> I want as following:
>
> On sidebar menu option->myapp
>
> Show a html table.
>
> Each field of table, have a value and it can be configure by user, suppose:
>
> ----|--------|---------|--------
> | 2 | 3 | 3
> ----|--------|---------|--------
> | 1 | 5 | 4
> ----|--------|---------|--------
>
> Then I want to store on table 'horde_prefs' only one entry, for example
>
> pref_uid=oscar
> pref_scope=myapp
> pref_namedesc
> pref_value = '2|3|3|1|5|4'
Create a 'special' preference to display the table, and name the .inc
file after than. Then when processing that pref, build the string, and
set the implicit preference using it
($prefs->setValue('implicit_pref_name, '2|3|3|1|5|4');).
You can look at some of the IMP folder prefs for examples, among other things.
-chuck
More information about the dev
mailing list