NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Insight Assistance


Joined: 27 Jan 2010
Posts: 2
Reply with quote
This would be my first time using PhpEd for such a large project. I am currently using an array of items defined as a new instance of a custom class, and would benefit greatly from having code completion work for this implementation and was wondering what i can do to make it work Smile

scenario:

File a.php has a function:
Code:
class cms_site
{
    var $GRIDS = array();
   
    function load_grid($grid_name)
    {
        $this->GRIDS[$grid_name] = new grid_config($grid_name);
    }
}
$SITE = new cms_site();


File b.php has a statement like:
Code:
$SITE->load_grid('GRID-DEV-MENUS');


Elsewhere I am looking for code insight/completion to work when doing something such as:

Code:
$SITE->GRIDS['GRID-DEV-MENUS']-> |


... any assistance appreciated.
View user's profileFind all posts by scriptingSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
There is no code insight for arrays. Perhaps using @var above it could help, but other than that I'm drawing a blank.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 27 Jan 2010
Posts: 2
Reply with quote
Well that does not seem to get it done either. Thanks for the thought idea though. If it's not capable of being done, it should defiantly be a feature upgrade. Opening the same project in JetBrains Web IDE for example, the type hinting picks it up as is, so it can be done! Smile
View user's profileFind all posts by scriptingSend private message
Code Insight Assistance
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic