I have a question about the autocompletion in eclipse. because I have created a system that has a tree like structure for example:
{"user": {
_class: "table"
"firstname": {}
"lastname": {}
"logins": {
"date": {},
}
}}
How can this structure create the context for the auto completion system. This is some example code that is messing up 1 part of the auto completion...:( And I really want this to work!
/**
* This code will return a object. in this case a text_read object but it can
be different depending on what the system logic does.
**/
function getObject () {
$type = "text"
$className = $type . "_read";
$object = new $className;
return $object
}
And the next problem i have is that a class creates properties dynamicly that it returns by a getter function.
class tmp {
private $a = array(
"firstname" => "Pietje"
); //this array is filled dynamicly in the constructor in production code
public function _getField ($name) {
return $this->a[$name];
}
}
Like to hear from you!