1 <?xml version="1.0" encoding="UTF-8"?>
3 <template name="class" description="class template with constructor" context="php" enabled="true">class ${class_name} {
4 function ${class_name}() {
8 <template name="class" description="class with attribute" context="php" enabled="true">class ${class_name} {
10 function ${class_name}() {
14 function set_${attribute}( $$${attr} ) {
15 $$this->${attribute} = $$${attr};
18 function get_${attribute}() {
19 return $$this->${attribute};
22 <template name="for" description="iterate over array" context="php" enabled="true">for ($$${index} = 0; $$${index} < sizeof($$${array}); $$${index}++) {
25 <template name="for" description="iterate over array w/ temporary variable" context="php" enabled="true">for ($$${index} = 0; $$${index} < sizeof($$${array}); $$${index}++) {
26 $$${array_element} = $$${array}[$$${index}];
29 <template name="function" description="function template" context="php" enabled="true">function ${function_name} () {
32 <template name="function" description="function template with return" context="php" enabled="true">function ${function_name} () {
35 <template name="while" description="while iteration" context="php" enabled="true">while (${condition}) {
38 <template name="switch" description="switch case statement" context="php" enabled="true">switch (${key}) {
45 }</template><template name="if" description="if statement" context="php" enabled="true">if (${condition}) {
47 }</template><template name="ifelse" description="if else statement" context="php" enabled="true">if (${condition}) {
51 }</template><template name="elseif" description="else if block" context="php" enabled="true">elseif (${condition}) {
53 }</template><template name="else" description="else block" context="php" enabled="true">else {
56 <template name="filecomment" description="file comment used by the class and interface wizards" context="php" enabled="true">/**
57 * Created on ${date} by ${user}
59 */</template><template name="functioncomment" description="function comment" context="php" enabled="true">/**
63 <template name="echo" description="echo a string" context="php" enabled="true">echo "${string}";