Code Assist not working for Informix functions [message #68692] |
Mon, 14 April 2008 20:00 |
Eclipse User |
|
|
|
Originally posted by: anonymous.email.com
I just installed Eclipse PDT All-in-one on a Windows XP machine.
Code Assist works just fine for all kinds of functions/classes, but not
for the Informix functions that start with ifx_. They are not in the list
of functions in the PHP Functions view.
Does anyone know how I can fix this?
In this blog post (http://2tbsp.com/node/40) chad says that code assist
relies on PHPdoc comments. Where is it possible to add the Informix
functions?
Kind regards,
Ludmilla
|
|
|
Re: Code Assist not working for Informix functions [message #68720 is a reply to message #68692] |
Tue, 15 April 2008 06:17 |
Eclipse User |
|
|
|
Originally posted by: spam.networks.fi
On Mon, 14 Apr 2008 23:00:08 +0300, LB <anonymous@email.com> wrote:
> I just installed Eclipse PDT All-in-one on a Windows XP machine. Code
> Assist works just fine for all kinds of functions/classes, but not for
> the Informix functions that start with ifx_. They are not in the list of
> functions in the PHP Functions view. Does anyone know how I can fix this?
>
> In this blog post (http://2tbsp.com/node/40) chad says that code assist
> relies on PHPdoc comments. Where is it possible to add the Informix
> functions?
>
> Kind regards,
>
> Ludmilla
>
I'm wondering the very same - I would want to add Mysqli functions to code
assist.
|
|
|
|
|
|
|
Re: Code Assist not working for Informix functions [message #69074 is a reply to message #68992] |
Mon, 21 April 2008 06:31 |
Eclipse User |
|
|
|
Originally posted by: spam.networks.fi
On Fri, 18 Apr 2008 15:48:42 +0300, Toshihiro
<euthanasia_waltz@yahoo.co.jp.jp> wrote:
> I can see mysqli functions in code assist list... (PDT 1.0.2)
>
>
Yes, you're of course right - so do I, but I use mysqli as Object like this
$db = new mysqli($host, $username, $passwd, $dbname);
then when i write $db -> [ctrl+space] nothing happens, it does not know
any methods of the class Mysqli. :(
jasmo
|
|
|
Re: Code Assist not working for Informix functions [message #69117 is a reply to message #69074] |
Mon, 21 April 2008 10:54 |
Eclipse User |
|
|
|
Originally posted by: euthanasia_waltz.yahoo.co.jp.earth
OK, it's a super FAQ.
>$db = new mysqli($host, $username, $passwd, $dbname);
>$db->
In this case, you must be able to get code assist.
However, for example,
>function init() {
> global $db;
> ...
> $db = new mysqli($host, $username, $passwd, $dbname);
> ...
>}
>...
>init();
>$db->
In this case, you cannot get code assist because the scope is different.
$db in init() is typed as mysqli ($db has type of mysqli), but $db in
main() is not typed (type is unknown).
So you have to describe the type.
>/* @var db mysqli */
>$db->
btw,
This will be improved in the next version of PDT, maybe...
--
Sorry for my English.
I wouldn't like to explain all other variations.
|
|
|
Powered by
FUDForum. Page generated in 0.02863 seconds