Intellisense - array made of objects

  • From: "pregmatch" < >
  • To:
  • Subject: Intellisense - array made of objects
  • Date: Sat, 25 Feb 2012 18:41:17 +0000

Hello,

   I was wondering if this is possible in netbeans? I mean I know it is not 
working for me.
Here is what I mean:
 
Code:

   
   class Intellisense {
      public function getSomeRows() {
        $data = array();
        //some query here select di from table;
        while($row = $result->getRow()){
           //lets say that I have some rows made of id-s
           array_push($data, new SomeClass($row['id']))
        }
     }
   }

   //now lets foreach results
   $Intellisense = new Intellisense();
   foreach($intellisense->getRows() as $some_rows){
      //lets says that we have sobe method getName in SomeClass
     echo $some_rows->getName(); // ----->>> this Intellisense is not 
working!!!! I got only $some_rows-> (and nothing)
   }




Is there anyone with need of such a feature?
And one more thing this is not working 

Code:
/** @var $some_rows SomeClass */


in 
Code:
foreach

 loop.






Intellisense - array made of objects

pregmatch 02/25/2012

Re: Intellisense - array made of objects

Ondrej Brejla 02/27/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 236 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close