Idea for a PHP Class template

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Idea for a PHP Class template

Postby codeowl » March 25th, 2013, 1:04 am

Hey guys,

How about a PHP Class template, so when you create a new file to add to your PHP project that is going to be a PHP Class, it creates a skeleton class with the same name as the file:

Eg; create file TestClass.php and it creates a file with:
Code: Select all
<?php
/**
* TestClass
*
* TestClass Description...
*
* @version 1.0
* @author Bob Smith (Could be set in Project Properties maybe)
*/
class TestClass
{

}

?>

Just like adding a new C# class would...
Just a thought ;-)

Regards,

Scott
codeowl
 
Posts: 51
Joined: February 10th, 2013, 10:05 am

Re: Idea for a PHP Class template

Postby CFI » March 25th, 2013, 8:12 am

I would like that too and already tried it on my own and failed at the "use filename as classname" part...
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: Idea for a PHP Class template

Postby Jakub Misek » March 25th, 2013, 1:40 pm

Great idea. We didn't notice there is missing such important template as 'PHP Class'. This will be definitely added in a future update.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Idea for a PHP Class template

Postby Jakub Misek » March 25th, 2013, 1:58 pm

Just a preview of newly created class from template.

File name and class name matches. User name is taken from windows login (the only mechanism VS allows).
You do not have the required permissions to view the files attached to this post.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Idea for a PHP Class template

Postby CFI » March 25th, 2013, 2:09 pm

Great - excatly as I wanted it to ;-)...
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: Idea for a PHP Class template

Postby codeowl » March 25th, 2013, 9:35 pm

Jakub,

Great work mate!! You guys are very responsive to feedback!! Love ya work ;-)

Regards,

Scott
codeowl
 
Posts: 51
Joined: February 10th, 2013, 10:05 am

Re: Idea for a PHP Class template

Postby Jakub Misek » March 28th, 2013, 11:53 am

Thank you :-) The class template was really must-have feature...
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 57 guests

cron

User Control Panel

Login

Who is online

In total there are 57 users online :: 0 registered, 0 hidden and 57 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 57 guests