Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Filter_StringPad Component Proposal

Proposed Component Name Zend_Filter_StringPad
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Filter_StringPad
Proposers Thomas Weidner
Zend Liaison TBD
Revision 1.0 - 12 April 2009: Initial Draft. (wiki revision: 4)

Table of Contents

1. Overview

Zend_Filter_StringPad is a filter which allows to pad/extend a string to a given length.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will pad a string to a given length
  • This component will allow to pad/extend a string on both sides
  • This component will allow to use any character to pad the string

4. Dependencies on Other Framework Components

  • Zend_Filter

5. Theory of Operation

This component allows to pad/extend a string to a given length the same way as str_pad would be.

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_Filter_StringPad

8. Use Cases

UC-01

Pad a string to 15 chars

UC-02

Pad a string to 15 chars, using another pad char

UC-03

Pad a string to 15 chars, using another pad char and another direction

9. Class Skeletons

]]></ac:plain-text-body></ac:macro>

]]></ac:plain-text-body></ac:macro>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.