|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (8)
View Page History{info:title=New Proposal Template}
This page has been created from a template that uses "zones." To proceed:
# Edit the page
# Replace sample content within each zone-data tag with your own content
# Remove this notice
# Save the page
# When you are ready for community review, move this page to the [Ready for Review] section on the edit page.
{note:title=No placeholders allowed!}
Please do not create placeholders. Wait until you have sufficient content to replace all sample data in the proposal template before creating your proposal document.
{note}
{info}
This page has been created from a template that uses "zones." To proceed:
# Edit the page
# Replace sample content within each zone-data tag with your own content
# Remove this notice
# Save the page
# When you are ready for community review, move this page to the [Ready for Review] section on the edit page.
{note:title=No placeholders allowed!}
Please do not create placeholders. Wait until you have sufficient content to replace all sample data in the proposal template before creating your proposal document.
{note}
{info}
{zone-template-instance:ZFPROP:Proposal Zone Template}
{zone-data:dependencies}
none Zend_Filter_Interface
Zend_View_Helper_Abstract
{zone-data}
{zone-data:operation}
{zone-data:operation}
This filter extends given strings to the wished length. It accepts and other string for extension/padding and default to whitespace if non is given.
It also supports padding extension from left, right or both sides.
For simplicity this component adds also a view helper which makes use of this filter.
{zone-data}
{zone-data}
{zone-data:use-cases}
||UC-01||
||UC-01||
Pad Extends a string to 15 chars
{code}
$filter = new Zend_Filter_StringPad(array('length' => 15);
$filter = new Zend_Filter_StringPad(array('length' => 15);
{code}
||UC-02||
||UC-02||
Pad Extends a string to 15 chars, using another pad char
{code}
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' => '.'));
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' => '.'));
{code}
||UC-03||
||UC-03||
Pad Extends a string to 15 chars, using another pad char and another direction
{code}
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' => '.', 'type' => Zend_Filter_StringPad::LEFT));
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' => '.', 'type' => Zend_Filter_StringPad::LEFT));