[Phpmyadmin-devel] Refactoring: Insert/edit, Privileges, Operations, Structure

Shameeha Pp shameehapp at yahoo.com
Fri Mar 30 13:06:34 CEST 2012


     I have gone through the project "Refactoring:Insert/edit, Privileges,

    I think that refactoring means  technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.

   I worked out for some portion of the application tbl_structure.php.

<table id="tablestructure" class="data">
    <th id="th<?php echo ++$i; ?>"></th>
    <th id="th<?php echo ++$i; ?>">#</th>
 id="th<?php echo ++$i; ?>" class="column"><?php echo
__('Column'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="type"><?php echo __('Type'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="length"><?php echo
__('Length(bytes)'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="precision"><?php echo
__('Precesion'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="Scale"><?php echo __('Scale'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="null"><?php echo __('Null'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="default"><?php echo
__('Default'); ?></th>
    <th id="th<?php echo ++$i; ?>" class="extra"><?php echo __('Extra'); ?></th>
<?php if
 ($db_is_information_schema || $tbl_is_view) { ?>
    <th id="th<?php echo ++$i; ?>" class="view"><?php echo __('View'); ?></th>
<?php }
I transform the above code into the following code.

foreach ($field as $key => $value)
    echo "__('$value')\t";

Please give me your comments on this. I would like to continue this
work as part of GSOC 2012 and I will be submitting the application
Thanking you..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120330/4c1fc685/attachment.html>

More information about the Developers mailing list