[Phpmyadmin-devel] Refactoring: Displaying query results

Michal Čihař michal at cihar.com
Thu May 17 09:38:02 CEST 2012


Hi

Dne Wed, 16 May 2012 21:33:17 +0530
Chanaka Dharmarathna <pe.chanaka.ck at gmail.com> napsal(a):

> I have introduced two small functions to reduce the code repetition in
> PMA_getVerticalTable() function in display_tbl.lib.php file.
> Both functions are using the global variable $vertical_display.

Please try to avoid using global variables, this one should be passed
as parameter (or it should be attribute of class which embeds
displaying query results).

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120517/3433c536/attachment.sig>


More information about the Developers mailing list