Zend Framework: Zend_View_Helper_Cycle Component Proposal
| Proposed Component Name | Zend_View_Helper_Cycle |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_Cycle |
| Proposers | Kamil Nowakowski Matthew Weier O'Phinney (Zend Liaison) |
| Revision | 0.1 - 5 April 2008: Initial proposal (wiki revision: 21) |
Table of Contents
1. Overview
Zend_View_Helper_Cycle is a simple component which cycles through a series of values based on an iteration number.
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- This helper will cycle through a series of values based on an iteration number.
- This helper will implement Iterator interface
4. Dependencies on Other Framework Components
- none
5. Theory of Operation
- You can cycle in both ways (normal or backwards) through the array
6. Milestones / Tasks
- Milestone 1:[DONE] Create proposal
- Milestone 2: Community [DONE] and Zend review
- Milestone 3: Unit tests exist, work, and are checked into SVN.
- Milestone 4: Initial documentation exists.
7. Class Index
- Zend_View_Helper_Cycle
8. Use Cases
| UC-01 |
|---|
output
| UC-02 |
|---|
In backwards order
10 Comments
comments.show.hideApr 05, 2008
Simon Mundy
Gets my vote - I already use my own but would appreciate an 'official' version
Apr 06, 2008
Geoffrey Tran
I do not believe that it is necessary to be extending Zend_View_Helper_Placeholder_Container_Standalone
Apr 26, 2008
Xavier Vidal
I propose to do a simpler implementation. Instead of passing always the array to the constructor, pass the values with a special method ('assign') and retrieve the next one using another method called 'next', 'get' or whatever you want.
The example would be like this:
Jul 03, 2008
Radek
I agree with Xaview I think that the posibility to earn next,previous,current, first and last value can by quite handy.
Jul 04, 2008
Kamil Nowakowski
thanks for suggestions , i will look at this after weekend
Aug 05, 2008
Matthew Weier O'Phinney
This component is approved for development in standard/incubator, with the
following notes/caveats:
Mar 18, 2009
Wil Sinclair
Has this proposal been abandoned? Please reply here.
Mar 19, 2009
Kamil Nowakowski
Code (class, tests and docs) is in incubator, but i have to do some changes, improvments ,I will finish it in few days
Mar 20, 2009
Kamil Nowakowski
Wil, I have finished the code , the helper is ready to use, (tests and docs are also in incubator)
Mar 20, 2009
Wil Sinclair
Great! Can you please work with MAtthew to make sure it gets promoted to trunk ASAP. I want to make sure this gets in 1.8.
,Wil