Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

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

Zend Framework: Zend_Filter_StripSpaces Component Proposal

Proposed Component Name Zend_Filter_StripSpaces
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Filter_StripSpaces
Proposers Thomas Weidner
Revision 1.0 - 04 Oktober 2009 (wiki revision: 10)

Table of Contents

1. Overview

Zend_Filter_StripSpaces will strip all spaces out of a string. You can specify if you want to strip out all spaces or just the unnecessary ones, means multiple spaces behind one another.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will correctly strip out all repeated spaces, as they are insignificat in some context (e.g. html)
  • This component will correctly strip out all spaces, when specified
  • This component will also handle Unicode White Spaces
  • This component will not remove any other character

4. Dependencies on Other Framework Components

  • Zend_Filter_Interface
  • Zend_Filter_Exception

5. Theory of Operation

Based on the specified options, this filter will strip all, more than one and/or also unicode white spaces.

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_StripSpaces

8. Use Cases

UC-01

Default, stripping multiple whitespaces (textual, unicode and html)

UC-02

Stripping only multiple textual whitespaces

UC-03

Stripping all whitespaces

UC-04

Stripping multiple types of whitespaces

UC-05

Stripping more than 3 whitespaces

9. Class Skeletons

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

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