Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » ADODB autocompletion problem
ADODB autocompletion problem [message #78561] Tue, 19 August 2008 18:03 Go to next message
Eclipse UserFriend
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 #78739 is a reply to message #78561] Wed, 20 August 2008 13:45 Go to previous messageGo to next message
David Muir is currently offline David MuirFriend
Messages: 63
Registered: July 2009
Member
If I remember correctly, you can do this:

/* @var YourDBAdapterClass */
$db = ADONewConnection("(database engine)");

Code completion should then assume that $db is of type YourDBAdapterClass.
Re: ADODB autocompletion problem [message #78796 is a reply to message #78739] Wed, 20 August 2008 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: veeti.tuntis.net

Hello.

I'm afraid that this isn't working. I've tried the following:

/* @var ADOConnection */

No code completion shows up for the variable.
Re: ADODB autocompletion problem [message #78810 is a reply to message #78796] Wed, 20 August 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 */.
Previous Topic:labelAttribute
Next Topic:can't install eclipse PDT with Ganymede
Goto Forum:
  


Current Time: Sun Jan 29 04:05:45 GMT 2023

Powered by FUDForum. Page generated in 0.05384 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top