Re: Intellisense - array made of objects

  • From: Ondrej Brejla < >
  • To:
  • Subject: Re: Intellisense - array made of objects
  • Date: Mon, 27 Feb 2012 10:14:59 +0100

Hi,

there is an issue describing this behavior ( http://netbeans.org/bugzilla/show_bug.cgi?id=207589). And /** @var $some_rows SomeClass */ can't work, you have to use /* @var 'some_rows SomeClass */ You see? Just one asterisk.
Regards,
Ondrej Brejla

Dne 25.2.2012 19:41, pregmatch napsal(a):
" type="cite">
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