View Source

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFPROP:Proposal Zone Template}

{zone-data:component-name}
Zend_View_Helper_HumanTime
{zone-data}

{zone-data:proposer-list}
[Martin Hujer|mailto:mhujer@gmail.com]
{zone-data}

{zone-data:liaison}
TBD
{zone-data}

{zone-data:revision}
1.0 - 31 July 2008: Initial Draft.
{zone-data}

{zone-data: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

{zone-data}

{zone-data:references}
* activeCollab [screenshot|http://www.activecollab.com/cms/public/images/features_screenshots/discussions/screen_2.png]
* gmail [screenshot|http://www.zendframework.cz/data/gmail.png]
{zone-data}


{zone-data:requirements}
* 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
{zone-data}

{zone-data:dependencies}
* Zend_Exception
* Zend_Date
* Zend_Locale
* Zend_View_Helper_Abstract
{zone-data}

{zone-data:operation}
...
{zone-data}

{zone-data:milestones}
* Milestone 1: Create proposal
* Milestone 2: Get comments
* Milestone 3: Update proposal
* Milestone 4: Create code and unit tests
* Milestone 5: Write docs
{zone-data}

{zone-data:class-list}
* Zend_View_Helper_HumanTime
{zone-data}

{zone-data:use-cases}
||UC-01||
{zone-data}

{zone-data:skeletons}
[SVN repo |http://zfdev.googlecode.com/svn/trunk/ZendViewHelperHumanTime/]
{code}
class Zend_View_Helper_HumanTime extends Zend_View_Helper_Abstract{
public function humanTime($time, $languageCode) {

}
}
//it will be developed using TDD -> no code skeletons will be published
//check SVN
{code}
{zone-data}

{zone-template-instance}]]></ac:plain-text-body></ac:macro>