--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+(c) Copyright IBM Corp. 2000, 2001.
+All Rights Reserved.
+-->
+
+<templates>
+
+ <!-- php -->
+
+ <template description="iterate over array" name="for" context="php"
+>for (int ${index} = 0; ${index} < ${array}.length; ${index}++) {
+ ${cursor}
+}</template>
+
+ <template description="iterate over array w/ temporary variable" name="for" context="php"
+>for (int ${index} = 0; ${index} < ${array}.length; ${index}++) {
+ ${array_type} ${array_element} = ${array}[${index}];
+ ${cursor}
+}</template>
+
+ <template description="iterate over collection" name="for" context="php"
+>for (Iterator ${iterator} = ${collection}.iterator(); ${iterator}.hasNext(); ) {
+ ${type} ${element} = (${type}) ${iterator}.next();
+ ${cursor}
+}</template>
+
+ <template description="iterate with enumeration" name="while" context="php"
+>while (${enumeration}.hasMoreElements()) {
+ ${type} ${element} = (${type}) ${enumeration}.nextElement();
+ ${cursor}
+}</template>
+
+ <template description="iterate with iterator" name="while" context="php"
+>while (${iterator}.hasNext()) {
+ ${type} ${element} = (${type}) ${iterator}.next();
+ ${cursor}
+}</template>
+
+ <template description="do while statement" name="do" context="php"
+>do {
+ ${cursor}
+} while (${condition});</template>
+
+ <template description="switch case statement" name="switch" context="php"
+>switch (${key}) {
+ case ${value}:
+ ${cursor}
+ break;
+
+ default:
+ break;
+}</template>
+
+ <template description="if statement" name="if" context="php"
+>if (${condition}) {
+ ${cursor}
+}</template>
+
+ <template description="if else statement" name="ifelse" context="php"
+>if (${condition}) {
+ ${cursor}
+} else {
+
+}</template>
+
+ <template description="else if block" name="elseif" context="php"
+>else if (${condition}) {
+ ${cursor}
+}</template>
+
+ <template description="else block" name="else" context="php"
+>else {
+ ${cursor}
+}</template>
+
+ <template description="try catch block" name="try" context="php"
+>try {
+ ${cursor}
+} catch (${Exception} e) {
+}</template>
+
+ <template description="catch block" name="catch" context="php"
+>catch (${Exception} e) {
+ ${cursor}
+}</template>
+
+ <template description="main method" name="main" context="php"
+>
+public static void main(String[] args) {
+ ${cursor}
+}</template>
+
+ <template description="public method" name="public_method" context="php"
+>
+public ${return_type} ${name}(${arguments}) {
+ ${cursor}
+}</template>
+
+ <template description="protected method" name="protected_method" context="php"
+>protected ${return_type} ${name}(${arguments}) {
+ ${cursor}
+}</template>
+
+ <template description="private method" name="private_method" context="php"
+>private ${return_type} ${name}(${arguments}) {
+ ${cursor}
+}</template>
+
+ <template description="private static method" name="private_static_method" context="php"
+>private static ${return_type} ${name}(${arguments}) {
+ ${cursor}
+}</template>
+
+ <template description="dynamic type test and cast" name="instanceof" context="php"
+>if (${name} instanceof ${type}) {
+ ${type} ${new_name} = (${type})${name};
+ ${cursor}
+}</template>
+
+ <template description="dynamic cast" name="cast" context="php"
+>${type} ${new_name} = (${type}) ${name};
+</template>
+
+ <template description="create new object" name="new" context="php"
+>${type} ${name} = new ${type}(${arguments});
+</template>
+
+ <template description="lazy creation" name="lazy" context="php"
+>if (${name} == null) {
+ ${name} = new ${type}(${arguments});
+ ${cursor}
+}
+
+return ${name};
+</template>
+
+ <template description="convert collection to array" name="toarray" context="php"
+ >(${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]);</template>
+
+ <template context="php" description="file comment used by the class and interface wizards" enabled="true" name="filecomment">/**
+ * Created on ${date}
+ *
+ * To change this generated comment edit the template variable "filecomment":
+ * Window>Preferences>Java>Templates.
+ * To enable and disable the creation of file comments go to
+ * Window>Preferences>Java>Code Generation.
+ */</template>
+
+<template name="typecomment" description="type comment used by the class and interface wizards" context="php" enabled="true">/**
+ * @author ${user}
+ *
+ * To change this generated comment edit the template variable "typecomment":
+ * Window>Preferences>Java>Templates.
+ * To enable and disable the creation of type comments go to
+ * Window>Preferences>Java>Code Generation.
+ */</template>
+
+ <template description="print to standard out" name="stdout" context="php"
+ >System.out.println(${cursor});</template>
+
+ <template description="print to standard error" name="stderr" context="php"
+ >System.err.println(${cursor});</template>
+
+ <!-- html -->
+
+ <template description="<code></code>" name="<code>" context="html"
+ ><code>${cursor}</code></template>
+
+ <template description="<code>null</code>" name="<code>" context="html"
+ ><code>null</code></template>
+
+ <template description="<pre></pre>" name="<pre>" context="html"
+ ><pre>${cursor}</pre></template>
+
+ <template description="<b></b>" name="<b>" context="html"
+ ><b>${cursor}</b></template>
+
+ <template description="<i></i>" name="<i>" context="html"
+ ><i>${cursor}</i></template>
+
+ <template description="author name" name="@author" context="html"
+ >@author ${user}</template>
+
+</templates>