Edit report at http://pear.php.net/bugs/bug.php?id=4269&edit=1
ID: 4269
Updated by: [email protected]
Reported By: Philippe dot Jausions at 11abacus dot com
Summary: Retrieving predefined groups
-Status: Bogus
+Status: Wont fix
Type: Feature/Change Request
Package: I18Nv2
Operating System: Irrelevant
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Status: Bogus
+Status: Wont fix
Updated status from Bogus to Won't Fix
Previous Comments:
------------------------------------------------------------------------
[2011-08-19 15:01:50] stelianm
-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
------------------------------------------------------------------------
[2005-05-03 10:58:21] 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.)
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=4269&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.