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}";
 
  67   <template name="&nbsp" description="no-break space " context="html" enabled="true">&nbsp
 
  70   <template name="<html" description="html page with head,title,body" context="html" enabled="true">
 
  73   <title>${title}</title>
 
  80   <template name="<title" description="title" context="html" enabled="true">
 
  81   <title>${cursor}</title>
 
  84   <template name="<table" description="3x3 table" context="html" enabled="true">
 
  87       <td>${t00}</td><td>${t01}</td><td>${t02}</td>
 
  90       <td>${t10}</td><td>${t11}</td><td>${t12}</td>
 
  93       <td>${t20}</td><td>${t21}</td><td>${t22}</td>
 
  98   <template name="<table" description="3x3 table with header" context="html" enabled="true">
 
 101       <th>${header0}</th><th>${header1}</th><th>${header2}</th>
 
 104       <td>${t00}</td><td>${t01}</td><td>${t02}</td>
 
 107       <td>${t10}</td><td>${t11}</td><td>${t12}</td>
 
 110       <td>${t20}</td><td>${t21}</td><td>${t22}</td>
 
 116   <template name="<a" description="hyperlink (href)" context="html" enabled="true">
 
 117   <a href="${link}">${description}</a> ${cursor}
 
 119   <template name="<a" description="hyperlink image" context="html" enabled="true">
 
 120   <a href="${link}"><img src="${image}"></a> ${cursor}
 
 122   <template name="<a" description="hyperlink fragment identifier (name)" context="html" enabled="true">
 
 123   <a name="${anchor}">${description}</a> ${cursor}
 
 125   <template name="<p" description="paragraph" context="html" enabled="true">
 
 126   <p>${cursor}</p>
 
 128   <template name="<pre" description="preformated text" context="html" enabled="true">
 
 129   <pre>${cursor}</pre>
 
 131   <template name="<blockquote" description="blockquoted text" context="html" enabled="true">
 
 132   <blockquote>${cursor}</blockquote>