[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Code Completion: Private variables

Vote for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247930


"Rik" <nomail@xxxxxxxxx> ha scritto nel messaggio 
news:gajkkn$oic$1@xxxxxxxxxxxxxxxxxxxx
> Private variable (in the Example attr1) are shown by the code completion 
> even if they are out of scope.
>
> Tested on  2.0 20080909 (I don't succed to install 20080913 because 
> Eclipse say is less recent).
>
>
> <?php
> class Class1
> {
> private $attr1;
>
> public function __construct()
> {
>  $this->attr1='hello!';
> }
>
> public function getAttrib()
> {
>  echo $this->attr1;
> }
>
> }
>
> $obj1=new Class1;
> $obj1->getAttrib();
>
> $obj1->attr1; //<<<<< Code compl. show private attr1.
> ?>
>