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_Date
{zone-data}

{zone-data:proposer-list}
[~thomas]
{zone-data}

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

{zone-data:revision}
1.0 - 7 June 2009: Initial Draft.
{zone-data}

{zone-data:overview}
Zend_View_Helper_Date is a view helper which simplifies the output of date objects within Zend_View.
{zone-data}

{zone-data:references}
* [Zend_Date|http://framework.zend.com/manual/en/zend.date.html]
{zone-data}

{zone-data:requirements}
* This component *will* allow to access and output Zend_Date objects directly in the view.
{zone-data}

{zone-data:dependencies}
* Zend_Date
* Zend_View_Helper
{zone-data}

{zone-data:operation}
The component allows to access a date object within the view. It will also allow to simply output the expected date string.
{zone-data}

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

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

{zone-data:use-cases}
||UC-01||
{code}
$this->date->toString();
$this->date->toString('dd.MM.yyyy');
$this->date->setDate('31.10.2009', 'dd.MM.yyyy');
$this->date->getDate('MMMM.yyyy'); // October.2009
{code}
{zone-data}

{zone-data:skeletons}
{code}
class Zend_View_Helper_Date extends Zend_View_Helper_Abstract {}
public function toString();
public function setDate();
public function addDate();
public function __get();
public function __set();
}
{code}
{zone-data}

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