Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.11.4

Request #4269 Retrieving predefined groups
Submitted: 2005-05-03 14:58 UTC
From: jausions Assigned:
Status: Wont fix Package: I18Nv2
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 31 - 4 = ?

 
 [2005-05-03 14:58 UTC] jausions
Description: ------------ Hi. I was wondering how to retrieve predifined groups with this package, but apparently, there is no easy way to do that. I'm writing a couple of new files for regions (state, province, etc...) and sometimes it is useful to return a list of available groups of regions. For instance, the country's main regions and its dependent territories. I saw the Filter and decorator classes, but they don't seem to provide generic access. For instance something like: I18Nv2_Country::getRegionGroups() could return a list of identifiers, which in turn could be used to drill down to get a list of regions. With the current version of package, you could for instance do: I18Nv2::Country->getGroups() which could return something like 'Asian', 'NorthAmerican', 'WesternEuropean'... and so forth, and then you could use that to somewhat access the decorated lists with a factory method. Let me know what you think. -Philippe PS: I'll be posting a separated "bug" with a link to couples of new files for regions (for at least US, Canada and France.)

Comments

 [2011-08-19 19:01 UTC] stelianm (Stelian Mocanita)
-Status: Open +Status: Bogus
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. This package is currently just maintained for bugs and security issues. For a newer more robust version, please use PECL Intl package at http://php.net/intl
 [2011-08-19 19:04 UTC] stelianm (Stelian Mocanita)
-Status: Bogus +Status: Wont fix
Updated status from Bogus to Won't Fix