php content assist autocompletion help [message #635205] |
Mon, 25 October 2010 20:42  |
Eclipse User |
|
|
|
is there anyway i can 'teach' content assist autocompletion in eclipse pdt what object my variable contains?
autocompletion stops working if i am in a function (with object passed as a parameter) or if my object is stored in a superglobal such as :
$_SESSION['user_db_handler']
i.e.
$smarty = new Smarty();
$smarty-> (this will autocomplete with ctrl-space)
$test_one =& $smarty;
$_SESSION['smarty'] =& $smarty;
$test_one-> (this will autocomplete)
$_SESSION['smarty' ->( this will not autocomplete)
test($smarty);
function test(&$smarty){
$smarty-> (this will not autocomplete)
}
anyone know how i can tell the autocompleter that my $_SESSION['smarty'] or $_SESSION['db'] holds a database object so autocomplete works?
thanks in advance!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03917 seconds