On Mon, May 14, 2012 at 10:09 PM, Marc Delisle
<marc@infomarc.info> wrote:
Le 2012-05-14 08:50, Thilina Buddika Abeyrathna a écrit :
Hi Thilina,
The code generating the actions_panel fieldset would benefit from being
refactored into one or more functions. The reason is that it's difficult
to understand quickly such a long code block.
It could become
$html_output = PMA_getActionsPanel(...);
Thank you for your reply Marc. I'll do like this
-----------
By the way, did you consider using a class? Have a look at
libraries/Partition.class.php. Then, the calling script uses this syntax:
$partition_names = PMA_Partition::getPartitionNames($db, $table);
The benefit is that you don't have to bother about function name clashing.
Thanks Marc. I'll look at that.