NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Dynamic code templates from Interfaces


Joined: 21 Oct 2007
Posts: 14
Reply with quote
It would be nice if I class that implements an interface (or extends an abstract) could "code complete from template" given the interface definition.

For example:-

Assume i.php contains:-

Code:

interface myi {
    public function ia();
    public function ib();
}


And then in another file I do:-

Code:

class myclass implements myi {
    // place cursor here
}


Now, hitting a single short-cut key would insert into myclass automagically the code templates for the interface functions based on my interface definition:-

Code:

class myclass implements myi {
    public function ia() {
   
    }

    public function ib() {

    }
}
View user's profileFind all posts by AjKSend private message


Joined: 27 Feb 2011
Posts: 8
Reply with quote
+1
View user's profileFind all posts by hrachczSend private message
Dynamic code templates from Interfaces
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