#5425: Additon of Validation::uuid() to Core Validation Methods
----------------------------+-----------------------------------------------
    Reporter:  jperras      |         Owner:  mark_story
        Type:  Enhancement  |        Status:  assigned  
    Priority:  Medium       |     Milestone:  2.0.0.x   
   Component:  Validation   |       Version:            
    Severity:  Normal       |    Resolution:            
    Keywords:               |   Php_version:  n/a       
Cake_version:  7596         |  
----------------------------+-----------------------------------------------
Comment (by ramaboo):

 I agree this should be added however I do not thing the above function is
 necessarily correct. UUID contain a version number and several other bits
 of info (depending on the version number). The above function only checks
 that it looks like a UUID but you could set a version number of 8 which is
 not valid (cakephp uses version 4).

 Furthermore uuid() generates a very specific type of UUID. Should this
 function only return true for cake like UUID's (same version) or maybe it
 should take some options like uuid($check, $strict) where strict
 determines if version/other checks are performed. or uuid($check, $version
 = false) where an optional version can be passed in as a second argument -
 just and idea :)

 The String::uuid() function could also be improved to accept an optional
 version number.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5425#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Re: [CakePHP : The Rapid... CakePHP : The Rapid Development Framework for PHP
    • Re: [CakePHP : The ... CakePHP : The Rapid Development Framework for PHP

Reply via email to