For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] Issues using functions starting with get in DataObject









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Issues using functions starting with get in DataObject
Justin Patrin

2005-05-03, 3:58 am

On 5/2/05, Dan Rossi <pear@electroteque.org> wrote:
> Hi there, I have discovered some clashes using typical getter methods
> ie getTable which i am using to display the data of the table in array
> for a list menu. However Formbuilder is using this somehow so getTable
> is displaying "cannot do two queries on the same object"
>=20
> Any ideas ?
>=20


DB_DataObject is meant to use get* methods to access the columns. I
assume you have a column called "table"?

You shouldn't use methods named "get*" as they conflict with column
getters. get_table would be better.

--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com