 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
marcandreuf
Joined: 13 Aug 2008 Posts: 1
|
Posted: Wed Aug 13, 2008 1:13 pm Post subject: I18Nv2 order DecoratedList |
|
|
Hi,
I don't know where I can upload my contribution, I think here is a good place. If not, tell me where I have to send it, thanks.
Hi, I've rewrited the function getAllCodes() in CommonList.php, this modification allow to see ordenated lists.
I hope to help, thx.
This is my code:
| Code: | /**
* Return all the codes
*
* @access public
* @return array all codes as associative array
* @author Marc Andreu Fernandez
* Order array by country name.
*/
function getAllCodes()
{
$ar_tmp;
if ('UTF-8' !== $this->encoding) {
$codes = $this->codes;
array_walk($codes, array(&$this, '_iconv'));
$ar_tmp = $codes;
}else{
$ar_tmp = $this->codes;
}
asort($ar_tmp);
return $ar_tmp;
} |
_________________ stay hungry, stay foolish |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Wed Aug 13, 2008 2:48 pm Post subject: |
|
|
| This forum is not the official PEAR forum. Please post your patch to the bug tracker on pear.php.net (go the package page and click the "bugs" tab there), thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|