[dev] horde_category_attributes

Chuck Hagenbuch chuck at horde.org
Mon Sep 1 08:27:40 PDT 2003


Quoting Marko Djukic <mdjukic at horde.org>:

> what would be the best way to store multi-level array data into attributes?

You can take a look at Perms and Shares - they store a few levels, but there's
of course a limit.

> want to switch giapeto over to use the attributes table and not the serialized
> data. but in the case of horde blocks as the block type, params can end up
> being arrays several levels deep.
>
> should i just serialize the params array as the value field in the sql or
> figure out some way to represent that in the table... but seems wasteful doing
> so many sql entries for each array element.

As long as you don't need to ever load pages based on block parameters - which
seems likely - serializing them is fine.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
They're just looking at a wall of meat.


More information about the dev mailing list