I don't know if this is a real limitation or something I haven't optionally
set. However the problem can be easily explaind with an example.(hope the
indentation will work).
I am very interested in having the code completion in that code working!
The reason is that some strategies for big applications rely just on this.
Imagine classes that map a DB. One can use something like PDO::FETCH_OBJ,
but the best is statically type fields in classes then using
PDO::FETCH_CLASS. In the second way, you don't have the need to skip from
code e DB (or documentation) to remember fields (so attributes) of the DB
(so DataClass). But all vanish if the code below is not working. To me,
having DB mapped without code completion is almost useless in view of
coding facilities.
Hi all!
Rik.
<?php
class class2
{
public $attr1,$attr2,$attr3;
}
class class1
{
public $o1;
public function __construct()
{
$o1=new class2;
}
public function assign()
{
//Here code completion work only for $this-> not $this->o1->
$this->o1->attr1='value attr1';
}
}
$o=new class1;
$o->assign();
//Same as above: only work for first level ($o-> not $o->o1->)
echo $o->o1->attr1;
?>