NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Auto completion of methods - registryclass


Joined: 16 Dec 2010
Posts: 1
Reply with quote
Hello,

In one of are projects, we are using a registryclass to registry some basic classes that are used anywhere in the project.
For example the database class:
Code:

registry::add('database',databaseClass::getInstance());

We call this function in the index file of the project (included everywhere).

The databaseClass contains a few methods. The great autocomplete function of PhpEd will show those functions when calling the class as follow:
Code:
$db = databaseClass::getInstance();
$db-> ..... (auto completion)


But.. when using the registry class as follow:
Code:
$db = registry::get('database');
$db-> .... no auto completion...


Is there a way in PhpEd to get the auto completion to work in this situation?
Maby it is already added/fixed in a newer version (we are using 5.6)?

Thanks already!

Sander
View user's profileFind all posts by sanderbeeSend private message


Joined: 28 May 2010
Posts: 10
Reply with quote
if you search around the forums here, youll find people have already asked this question and it has been solved at least once (in the past few months as well). Just as a hint, you have to use phpdoc features in phped to do it.
View user's profileFind all posts by yareallySend private message
Auto completion of methods - registryclass
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