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
- Milestone 1: [DONE] Finalize proposal
- Milestone 2: [DONE] Working prototype checked into the http://zfdev.googlecode.com/svn/trunk/ZendFilterStripNewlines/
- Milestone 3: [DONE] Unit tests exist, work, and are checked into SVN.
- Milestone 4: Community and Zend review
7. Class Index
- Zend_Filter_StripNewlines
8. Use Cases
| UC-01 |
|---|
9. Class Skeletons
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.
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.
ZF Home Page
Code Browser
Wiki Dashboard
"\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\".