<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_Validate_PostCode is a compnent which will validate if a given string conforms a post code from any region within the world.Zend Framework: Zend_Validate_PostCode Component Proposal
Proposed Component Name
Zend_Validate_PostCode
Developer Notes
http://framework.zend.com/wiki/display/ZFDEV/Zend_Validate_PostCode
Proposers
Thomas Weidner
Zend Liaison
TBD
Revision
1.0 - 7 June 2009: Initial Draft. (wiki revision: 9)
Table of Contents
1. Overview
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
4. Dependencies on Other Framework Components
- Zend_Exception
- Zend_Locale
5. Theory of Operation
This component uses Zend_Locale to get the postal code informations for all known countries. These are then used to detect if the given input is a postal code or not. This component can not detect if a given postal code exists or not. It only checks if a given input can be a postal code, if the notation conforms, or not.
6. Milestones / Tasks
- Milestone 1: [DONE] Proposal finished
- Milestone 2: [DONE] Proposal accepted
- Milestone 3: [DONE] Coding finished
- Milestone 4: [DONE] Unit tests finished
- Milestone 5: [DONE] Documentation finished
- Milestone 6: [DONE] Component moved to core
7. Class Index
- Zend_Validate_PostCode
8. Use Cases
| UC-01 |
|---|
Uses set application wide locale to detect the region to use
| UC-02 |
|---|
Sets a region where the postal code is related to
or set it afterwards
| UC-03 |
|---|
Sets a self defined format for postal code validation
5 Comments
comments.show.hideJul 14, 2009
Matthew Weier O'Phinney
<ac:macro ac:name="note"><ac:parameter ac:name="title">Zend Framework Approval</ac:parameter><ac:rich-text-body>
<p>This proposal is accepted for immediate development in the standard incubator, as-is.</p></ac:rich-text-body></ac:macro>
Sep 08, 2009
Borislav Nedelchev
<p>Do you need help for checking GB postcodes?</p>
Sep 09, 2009
Thomas Weidner
<p>No need to check. The component is already finished.</p>
<p>The data comes from unicode.<br />
When it's not correct then we have to blame unicode <ac:emoticon ac:name="wink" /></p>
Sep 09, 2009
Borislav Nedelchev
<p>Good, is there anything else I can help with?<br />
Just tried to be in help</p>
Sep 09, 2009
Thomas Weidner
<p>As you can read within Point 6 of the proposal:</p>
<ul>
<li>Code is finished</li>
<li>Unittests are finished</li>
<li>Documentation is finished</li>
</ul>
<p>There is nothing to do as all work is already done.<br />
We are just waiting for approvement from the dev-team.</p>