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_StringAppend & Zend_Filter_StringPrepend Component Proposal

Proposed Component Name Zend_Filter_StringAppend & Zend_Filter_StringPrepend
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Filter_StringAppend & Zend_Filter_StringPrepend
Proposers Thomas Weidner
Zend Liaison TBD
Revision 1.0 - 14 May 2010: Initial (wiki revision: 2)

Table of Contents

1. Overview

Zend_Filter_StringAppend and Zend_Filter_StringPrepend are filters which allow to append or prepend a string with a certain content to a given string.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will append and prepend strings.
  • This component will not work on resources like files.

4. Dependencies on Other Framework Components

  • Zend_Filter

5. Theory of Operation

Zend_Filter_StringAppend can append a string to a string. It can be used to detect if the given string is already appended (per option). In this case, if set, no string will be appended. Zend_Filter_StringPrepend works reverse.

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_StringAppend
  • Zend_Filter_StringPrepend

8. Use Cases

UC-01

Prepend a string

INPUT: "www.example.com"
OUTPUT: "http://www.example.com"

UC-02

Prepend a string but only if it does not already exist

INPUT: "http://www.example.com"
OUTPUT: "http://www.example.com"

UC-03

Append a string but only if a collection of strings does not already exist

INPUT: "http://www.example.gov"
OUTPUT: "http://www.example.gov"

INPUT: "http://www.example"
OUTPUT: "http://www.example.com"

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.