Skip to end of metadata
Go to start of metadata

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

Labels:
filter filter Delete
newline newline Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 24, 2008

    "\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\".

    1. Jan 24, 2008

      Thanks, fixed in proposal and SVN.

  2. Jan 30, 2008

    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.

    1. Jan 30, 2008

      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.

  3. Jan 30, 2008

    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.

  4. Jun 12, 2008

    Zend Team Official Comment
    This proposal is accepted as is into the Standard Incubator for development.
  5. Mar 18, 2009

    Martin, what is the status of this proposal? It seems like a relatively small change, so it might be worth finishing off for the 1.8 release.

    1. Mar 19, 2009

      Wil, this component is already in standard ZF.

      I've asked Ralph to move this proposal to another section, but he may had forgotten.