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_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

Zend_Validate_PostCode is a compnent which will validate if a given string conforms a post code from any region within the world.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will support postal codes from all countries
  • This component will only validate
  • This component will not change the notation of the input
  • This component will not 100% detect if a given postal code exists or not

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

9. Class Skeletons

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

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

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jul 14, 2009

    <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>

  2. Sep 08, 2009

    <p>Do you need help for checking GB postcodes?</p>

    1. Sep 09, 2009

      <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>

  3. Sep 09, 2009

    <p>Good, is there anything else I can help with?<br />
    Just tried to be in help</p>

    1. Sep 09, 2009

      <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>