Zend Framework: Zend_View_Helper_Date Component Proposal
| Proposed Component Name | Zend_View_Helper_Date |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_Date |
| Proposers | Thomas Weidner |
| Zend Liaison | TBD |
| Revision | 1.0 - 7 June 2009: Initial Draft. (wiki revision: 4) |
Table of Contents
1. Overview
Zend_View_Helper_Date is a view helper which simplifies the output of date objects within Zend_View.
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- This component will allow to access and output Zend_Date objects directly in the view.
4. Dependencies on Other Framework Components
- Zend_Date
- Zend_View_Helper
5. Theory of Operation
The component allows to access a date object within the view. It will also allow to simply output the expected date string.
6. Milestones / Tasks
- Milestone 1: [DONE] Proposal finished
- Milestone 2: Proposal accepted
- Milestone 3: Working implementation
- Milestone 4: Unit tests
- Milestone 5: Documentation
- Milestone 6: Moved to core
7. Class Index
- Zend_View_Helper_Date
8. Use Cases
| UC-01 |
|---|
9. Class Skeletons
Labels:
None
3 Comments
comments.show.hideJul 14, 2009
Matthew Weier O'Phinney
This proposal is accepted for immediate development in the Standard Incubator, as-is.
Aug 04, 2009
Benoît Durand
When we can see a first version in the incubator ?
Aug 06, 2009
Benoît Durand
If we wish to format several dates in the same format in a iterator, it is necessary to chain the methods set() then get(). A method could define the format and an other one to have a parameter Zend_Date and returns the date string with the format defined previously like Zend_View_Helper_Currency.
What is the difference between method get() and toString() ?