PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
I18Nv2 order DecoratedList

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Internationalization
View previous topic :: View next topic  
Author Message
marcandreuf



Joined: 13 Aug 2008
Posts: 1

PostPosted: Wed Aug 13, 2008 1:13 pm    Post subject: I18Nv2 order DecoratedList Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1003

PostPosted: Wed Aug 13, 2008 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Internationalization All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software