[Solar-talk] actionList helper moved to list iterator
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Jul 6 16:58:46 CDT 2007
Hi,
Solar SVN once had a "ActionList" helper which I found very useful and
have being using since then. But it and never released it, ok, I kept
a copy of it.
Today I needed a different kind of action list (with "named" items and
item attributes, and not based on a simple href => text array) and
thought that it was time for a refactoring. So I created a "list
iterator" class to serve as base to build any list, including an
ActionList:
http://dev.tipos.org/browser/trunk/Tipos/View/Helper/ListBase.php
For the named action list I needed, which has special CSS configs for
first/last/selected items, I extended it:
http://dev.tipos.org/browser/trunk/Tipos/View/Helper/ListNav.php
Finally, I wrapped the old action list to use this last one and build
a href => text list:
http://dev.tipos.org/browser/trunk/Tipos/View/Helper/ActionList.php
(this one is still a bit messy, but I'll come back and clean up it a bit :)
Lists are common, lists are nice. I hope these helpers can be useful.
-- rodrigo
More information about the Solar-talk
mailing list