ADODB autocompletion problem [message #78561] |
Tue, 19 August 2008 18:03 |
Eclipse User |
|
|
|
Originally posted by: veeti.tuntis.net
Hi.
In PDT, autocompletion for ADODB isn't working: instead of initializing
the class directly, it is done like this:
$db = ADONewConnection("(database engine)"). ADONewConnection then returns
a the appropriate class for the database engine of choice.
Now, if I try to get autocompletion information for $db in PDT, none
appears. Is there a workaround for this?
Thanks.
|
|
|
|
|
Re: ADODB autocompletion problem [message #78810 is a reply to message #78796] |
Wed, 20 August 2008 16:24 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.mark-kirchner.de
VP schrieb:
> /* @var ADOConnection */
Try /* @var $db ADOConnection */ instead. This should work if PDT
"knows" the ADODB-classes.
But since ADODB doesn't seem to be an "official" part of PHP, I highly
doubt that. In this case, you could try to download the ADODB-sources,
import them into a new PDT-project and tell PDT that your own project
depends on the new one (via "Project References" and/or "Include Path
Libraries").
HTH,
Mark
|
|
|
Re: ADODB autocompletion problem [message #78839 is a reply to message #78810] |
Wed, 20 August 2008 18:06 |
Eclipse User |
|
|
|
Originally posted by: veeti.tuntis.net
Thank you for your help. I managed to get it working after copying the
ADODB sources to another project, adding it to the project's include path,
and doing /* @var $db ADOConnection */.
|
|
|
Powered by
FUDForum. Page generated in 0.02906 seconds