Added by Martin Hujer, last edited by Martin Hujer on Aug 21, 2008  (view change)

Labels

 
(None)

Zend Framework: Zend_View_Helper_HumanTime Component Proposal

Proposed Component Name Zend_View_Helper_HumanTime
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_HumanTime
Proposers Martin Hujer
Zend Liaison TBD
Revision 1.0 - 31 July 2008: Initial Draft. (wiki revision: 6)

Table of Contents

1. Overview

Zend_View_Helper_HumanTime is a view helper that formats time and date into human easy readable format like:

  • in 2 days
  • tomorrow
  • today
  • in 2 hours
  • in about an hour
  • in a few seconds
  • few seconds ago
  • 10 minutes ago
  • 2 hours ago
  • yesterday
  • 2 days ago
  • a week ago
  • a month ago

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • this class must format date and time in human readable form
  • this class must allow translating of messages
  • $languageCode should be taken from general Zend_Locale object
  • some language files should be provided by default

4. Dependencies on Other Framework Components

  • Zend_Exception
  • Zend_Date
  • Zend_Locale
  • Zend_View_Helper_Abstract

5. Theory of Operation

...

6. Milestones / Tasks

  • Milestone 1: Create proposal
  • Milestone 2: Get comments
  • Milestone 3: Update proposal
  • Milestone 4: Create code and unit tests
  • Milestone 5: Write docs

7. Class Index

  • Zend_View_Helper_HumanTime

8. Use Cases

UC-01

9. Class Skeletons

SVN repo