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_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: 12)

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

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

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

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

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

    1. Jan 24, 2008

      <p>Thanks, fixed in proposal and SVN. </p>

  2. Jan 30, 2008

    <p>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.</p>

    <p>If I'm wrong I'm asking for pardon.</p>

    1. Jan 30, 2008

      <p>Thanks for your comment!<br />
      I'm not an American as well, but on <a href="http://en.wikipedia.org/wiki/Newline">Wikipedia</a> or on <a href="http://www.w3.org/TR/newline">w3</a> is 'Newline' used as one word.</p>

      <p>But this should be answered by somebody more competent.</p>

  3. Jan 30, 2008

    <p>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.</p>

  4. Jun 12, 2008

    <ac:macro ac:name="note"><ac:parameter ac:name="title">Zend Team Official Comment</ac:parameter><ac:rich-text-body>
    <p>This proposal is accepted as is into the Standard Incubator for development.</p></ac:rich-text-body></ac:macro>

  5. Mar 18, 2009

    <p>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.</p>

    1. Mar 19, 2009

      <p>Wil, this component is already in standard ZF.</p>

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