[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.pdt] Code Completion: Private variables
|
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.
?>