[Phpmyadmin-devel] Refactoring: Displaying query results
pe.chanaka.ck at gmail.com
Tue May 8 21:32:53 CEST 2012
On Tue, May 8, 2012 at 7:23 PM, Chanaka Dharmarathna <
pe.chanaka.ck at gmail.com> wrote:
> On Tue, May 8, 2012 at 7:08 PM, Marc Delisle <marc at infomarc.info> wrote:
>> Le 2012-05-08 09:25, Chanaka Dharmarathna a écrit :
>> >> See "Class Variables and Methods" in .
>> >>  http://pear.php.net/manual/en/standards.naming.php
>> > Hi Marc,
>> > I went through that document.
>> > If the function is global, it will be like 'PMA_getDivForSliderEffect()'
>> > And if it is a local function (for particular class), it will be like
>> > 'getDivForSliderEffect()'.
>> If this is a public method, yes. If a private one, prefix its name with
>> an underscore.
>> > Though I went through that document before this, I couldn't get that
>> > Thanks for pointing out that.
>> Marc Delisle
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> Phpmyadmin-devel mailing list
>> Phpmyadmin-devel at lists.sourceforge.net
> Got it Marc.
> Chanaka Indrajith
> Bsc.Computer Engineering Undergraduate
> Faculty of Engineering
> University of Peradeniya
> Sri Lanka
I just did my first commit to my repository .
In that commit I have done some refactoring on "PMA_displayTableHeaders()"
function in "display_tbl.php" file.
All HTML renderings by "echo"s were removed and those HTML was rendered at
the bottom of the function at once.
As well some related functions in "common.lib.php" file also were modified
in order to return a string of HTML content.
But the tests were not yet modified according to my modifications.
Since there was a conflict after my first local commit  (git commit), I
had to resolve conflicts and commit again. (that is )
I have already installed phpUnit framework.
It will be very helpful if you can suggest me some documentation to setup
and run tests in PMA (selenium etc).
I'm intending to do the above refactoring procedure to all the functions in
"display_tbl.lib.php" file before moving to any other task.
Bsc.Computer Engineering Undergraduate
Faculty of Engineering
University of Peradeniya
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Developers