[Phpmyadmin-devel] Refactoring insert-edit

Thilina Buddika Abeyrathna thilinaabeyrathna at gmail.com
Sun May 13 12:08:53 CEST 2012


On Sun, May 13, 2012 at 3:23 PM, Marc Delisle <marc at infomarc.info> wrote:

> Le 2012-05-13 03:12, Thilina Buddika Abeyrathna a écrit :
> > Hi Marc,
> > when I'm writing functions for columns of insertForm I need to pass all
> the
> > following parameters to the functions.
> > $field, $backup_field, $field_name_appendix, $unnullify_trigger,
> $tabindex,
> > $tabindex_for_value, $idindex, $data
> > So function signature is very long which is somewhat ugly, Is it ok to
> have
> > a global parameter array for insert_edit.lib.php file. Does this break
> the
> > refactoring?
>
> Hi Thilina,
> I think it's clearer if we see all the parameters in the signature. See
> "Split function definitions onto several lines" in [0].
>
> [0] http://pear.php.net/manual/en/standards.funcdef.php


Thank you very much Marc,
-- 
Regards.

Thilina Buddika Abeyrathna,
Department of Computer Engineering,
Faculty Of Engineering,
University of Peradeniya,
Sri Lanka.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20120513/2e40796a/attachment.html>


More information about the Developers mailing list