├── .gitignore
├── LICENSE
├── PHPClassTemplates.iml
├── README.md
├── resources
├── META-INF
│ └── plugin.xml
└── fileTemplates
│ └── internal
│ ├── PHP Exception.php.ft
│ └── PHP Exception.php.html
└── src
└── com
└── aurimasniekis
└── phpclasstemplates
├── actions
├── NewPHPExceptionClass.java
└── NewPHPTemplateClass.java
└── dialog
├── PhpNewClassDialog.java
├── PhpNewExceptionClassDialog.java
└── PhpNewTemplateClassDialog.java
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /out
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Aurimas Niekis
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/PHPClassTemplates.iml:
--------------------------------------------------------------------------------
1 |
2 | PHP Class From Template uses File Templates with file extension "class.php"
10 |
13 |
14 | PHP Class From Template Usage
15 |
16 |
7 | This is a built-in template used each time you create a new PHP class by selecting New | PHP Class from the popup menu
8 | in one of the project views. 9 | The template is editable. Along with PHP statements, expressions and comments you can also use the predefined variables 10 | listed below. Every variable will be expanded like macros into the corresponding value. 11 | By means of the #parse directive, you can include templates from the Includes 12 | tab by specifying the full name of the desired template as a parameter in quotation marks. 13 | |
14 |
Predefined variables will take the following values: | 20 |||
23 | |
25 | 26 | | current file name | 27 |
30 | |
32 | 33 | | current user system login name | 34 |
37 | |
39 | 40 | | current system date | 41 |
44 | |
46 | 47 | | current system time | 48 |
51 | |
53 | 54 | | current year | 55 |
58 | |
60 | 61 | | current month | 62 |
65 | |
67 | 68 | | current day of the month | 69 |
72 | |
74 | 75 | | current hour | 76 |
79 | |
81 | 82 | | current minute | 83 |
86 | |
88 | 89 | | current IDE name | 90 |
93 | |
95 | 96 | | current project name | 97 |
100 | |
102 | 103 | | Dollar sign, evaluates to a plain '$' character. | 104 |