I should have added more to this in the begining. Essentially, I have an object that I want mapped to a database. So for each field their will be a correspond set or get, there would be no direct access to the variables. Is there a way in PHPED in code completion to display a ghost list of members either through phpdoc? Example
class hello
{
/**
@var name
@var address
*/
function _get($nm)
{
if ($nm == "name")
return "Frank";
return $this->nm
}
}
$a = new hello();
$a->name;
|
What I would like to have happen is while I am typing $a-> (A ghost list of members show up that can actually drop into code like the @var's name, address). It is hard to remember every single db field's name.