This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, it could be very useful to add code completion for PHP array of object used as class properties (using the PHPDoc information). Example: <?php class ModuleLoader { public /** * @var Database The database object */ $database, /** * @var Module[string] Associative array of modules object (or @var array[string]Module ...) */ $modules=array(); function addDatabase($dbObject) { $this->database=$dbObject; } function addModule($moduleObject) { $this->modules[$moduleObject->name]=$moduleObject; } } Class Database { public /** * @var string The DB server address */ $address; function connect() { // .... } } Class Module { public /** * @var string Module name */ $name, /** * @var bool Module autoload option */ $autoload=false; function __construct($moduleName) { $this->name=$moduleName; } function loadModuleConfig($fileName) { //... } } $myModuleLoader=new ModuleLoader(); $myDb=new Database(); $myModuleLoader->addDatabase($myDb); $myModuleLoaden herer->database->connect() <<< code completion is working here // BUT $myModule=new Module("moduleA"); $myModule->autoload=true; $myModuleLoader->addModule($myModule); $myModuleLoader->modules['moduleA']->? <<< code completion NOT WORKING HERE -> need autocomplete with 'name','autoload','loadModuleConfig' ?>
// This also is not working $modObj=$myModuleLoader->modules['moduleA']; $modObj->? <<< code completion NOT WORKING here -> need autocomplete with 'name','autoload','loadModuleConfig'
reassigning to default owner
batch reassigning
This is not a Netbeans issue but a PHPDoc issue. Once added to the PHPDoc standard, i doubt that the NB devs wouldn't implement it. http://www.phpdoc.org/