Added by Martin Hujer, last edited by Ralph Schindler on Jun 12, 2008  (view change)

Labels

 

Zend Framework: Zend_Filter_StripNewlines Component Proposal

Proposed Component Name Zend_Filter_StripNewlines
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Filter_StripNewlines
Proposers My E-mail Address
Zend Liaison Ralph Schindler
Revision 24th January 2008: Initial proposal, code, tests
27th January 2008: Changed SVN path (wiki revision: 11)

Table of Contents

1. Overview

Zend_Filter_StripNewlines is a filter that strips out newline control characters (\n \r \n\r)

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will strip newline control characters from the string.
  • This component will not remove any other character.

4. Dependencies on Other Framework Components

  • Zend_Filter_Interface

5. Theory of Operation

...

6. Milestones / Tasks

7. Class Index

  • Zend_Filter_StripNewlines

8. Use Cases

UC-01

9. Class Skeletons

"\n\r" should be "\r\n", although I don't think either is necessary since replacing all occurrences of "\n" and "\r" will also replace "\r\n\".

Thanks, fixed in proposal and SVN.

As I'm not an American I'm not sure, but I think this class should be called Zend_Filter_StripNewLines by following the naming conventions.

If I'm wrong I'm asking for pardon.

Thanks for your comment!
I'm not an American as well, but on Wikipedia or on w3 is 'Newline' used as one word.

But this should be answered by somebody more competent.

Ok, than certainly you are right. I looked up my dictionary and couldn't find it, so I jumped to the conclusion it is wrong.

Zend Team Official Comment

This proposal is accepted as is into the Standard Incubator for development.