[dev] Re: [cvs] commit: horde/config html.php.dist registry.php.dist imp/lib/Block tree_folders.php horde/services/portal menu.php

Jan Schneider jan at horde.org
Tue Aug 3 09:03:21 PDT 2004


Zitat von Chuck Hagenbuch <chuck at horde.org>:

>> We should distinguish menu blocks from portal blocks though, be it with a
>> simple property.
>
> I have two ideas currently for this:
>
> 1. Set a $block_type variable along with $block_name.
> 2. Use subdirectories in lib/Block/ to distinguish blocks by type.
>
> I think we could probably come up with a few different kinds of 
> blocks at this
> point; not all of the existing ones are useful as portal blocks, for 
> instance.
> And it'd be nice to be able to put together lots of other generic blocks for
> exporting application functionality to Giapeto, etc.
>
> Thoughts?

Both options allow to be extended for other block types in the future. I'd
vote for $block_type, as we read $block_name anyway and it will cause less
problems if people can drop block files into a single directory.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list