[dev] stupid questions....

Mike Cochrane mike at graftonhall.co.nz
Fri Feb 21 16:33:00 PST 2003


> ----- Message from amith at xalan.com ---------
> 2) I want to set a default page for user for the portal page.  The pref for
> that has
> 
> $_prefs['portal_layout'] = array(
>     'value' => 'a:0:{}',
> 
> Can someone explain to me what that value represents?  Looks like an empty
> array
> but I don't know.  

It's a serialize()'d empty array so you were pretty close. 

The best way to set some thing for this is to get it looking how you want it
with one of your users. 
Then get the value of portal_layout for that user from the backend (probably the
horde_prefs database table) and set that is the default value.

I think this value will only show imp and turba on the same row:
a:1:{i:0;a:2:{i:0;a:2:{s:3:"app";s:3:"imp";s:6:"params";a:2:{s:4:"type";s:7:"summary";s:6:"params";a:0:{}}}i:1;a:4:{s:3:"app";s:5:"turba";s:6:"params";a:2:{s:4:"type";s:10:"minisearch";s:6:"params";a:0:{}}s:5:"width";i:1;s:6:"height";i:1;}}}

- Mike :-)



More information about the dev mailing list