Code Assist not working for Informix functions [message #68692] |
Mon, 14 April 2008 16: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 #69117 is a reply to message #69074] |
Mon, 21 April 2008 06: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.66777 seconds