Code Completion: Private variables [message #80181] |
Sun, 14 September 2008 18:22  |
Eclipse User |
|
|
|
Originally posted by: nomail.nomail.it
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.
?>
|
|
|
Re: Code Completion: Private variables [message #80831 is a reply to message #80181] |
Fri, 26 September 2008 09:36  |
Eclipse User |
|
|
|
Originally posted by: nomail.nomail.it
Vote for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247930
"Rik" <nomail@nomail.it> ha scritto nel messaggio
news:gajkkn$oic$1@build.eclipse.org...
> 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.
> ?>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02365 seconds