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_Uuid Component Proposal

Proposed Component Name Zend_Validate_Uuid
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Validate_Uuid
Proposers Stephan Wentz
Zend Liaison TBD
Revision 1.0 - 2 February 2010: Initial Draft. (wiki revision: 21)

Table of Contents

1. Overview

Zend_Validate_Uuid is a component that validates 36-character UUIDs (Universally Unique Identifiers).

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will check if a string is a valid UUID.
  • This component will use the uuid PECL extension if it is available
  • This component will validate 36-character UUIDs.
  • This component will will return true if the string is a valid UUID.
  • This component will will ignore case.
  • This component will will return false on wrong length
  • This component will will return false on invalid chars (valid is 0-9a-z)
  • This component will will return false on wrong positioned hyphens for 36 character UUIDs

4. Dependencies on Other Framework Components

  • Zend_Validate_Abstract

5. Theory of Operation

The component is instantiated to validate UUID strings.

6. Milestones / Tasks

  • Milestone 1: [DONE] write proposal
  • Milestone 2: Get community feedback
  • Milestone 3: Get the proposal approved
  • Milestone 4: Working prototype checked into the incubator supporting use cases #1, #2
  • Milestone 5: Unit tests exist, work, and are checked into SVN.
  • Milestone 6: Initial documentation exists.

7. Class Index

  • Zend_Validate_Uuid

8. Use Cases

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. Aug 04, 2010

    <p>Hi Stephan,</p>

    <p>For ZF 2.0, it would be great to have UUID support. Validation and generation (I noted your comment on the Zend_Uuid proposal). Could you updated me on your status? At present, it's becoming unavoidable but to duplicate what your proposal would achieve and I'd prefer to avoid that.</p>

    <p>Note that the CR Team (we're doing a stack of proposal work) is actively reviewing proposals for 1.11 which has a deadline of end of August, and ZF 2.0 is pretty much open as is. I'd be happy to push this proposal along as fast as I can if I you are interesting in persuing this.</p>

    <p>If you're willing to work to work on the generation proposal (trying to contact those authors), please let me know.</p>

    <p>Paddy</p>

  2. Oct 22, 2010

    <p>Hi Stephan,</p>

    <p>You can also use Zend_Uuid for validation.</p>

    <ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
    $import = Zend_Uuid::import('ac6773e0-d899-11df-84b3-00112233445');
    ]]></ac:plain-text-body></ac:macro>

    <p>In our import function throws an error if it;s not a valid uuid. This check is also byte safe.</p>

    <p>Also the compare function is maybe nice to have in validate.</p>

    <p>In my proposal i now have a ZF 1.10/11 and ZF2 version, maybe you can check if it works for you <ac:emoticon ac:name="wink" /></p>

  3. Feb 06, 2011

    <p>Archiving this proposal, feel free to recover it when you want to work on it again. For more details see <a href="http://framework.zend.com/wiki/display/ZFDEV/Archiving+of+abandoned+proposals+(Feb+5+2011)">this email</a>.</p>