+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<templates>
-<template name="class" description="class template with constructor" context="php" enabled="true">class ${class_name} {
- function ${class_name}() {
- ${cursor}
- }
-}</template>
-<template name="class" description="class with attribute" context="php" enabled="true">class ${class_name} {
- var $$${attribute};
- function ${class_name}() {
- ${cursor}
- }
-
- function set_${attribute}( $$${attr} ) {
- $$this->${attribute} = $$${attr};
- }
-
- function get_${attribute}() {
- return $$this->${attribute};
- }
-}</template>
-<template name="for" description="iterate over array" context="php" enabled="true">for ($$${index} = 0; $$${index} < sizeof($$${array}); $$${index}++) {
- ${cursor}
-}</template>
-<template name="for" description="iterate over array w/ temporary variable" context="php" enabled="true">for ($$${index} = 0; $$${index} < sizeof($$${array}); $$${index}++) {
- $$${array_element} = $$${array}[$$${index}];
- ${cursor}
-}</template>
-<template name="function" description="function template" context="php" enabled="true">function ${function_name} () {
- ${cursor}
-}</template>
-<template name="function" description="function template with return" context="php" enabled="true">function ${function_name} () {
- return (${cursor});
-}</template>
-<template name="while" description="while iteration" context="php" enabled="true">while (${condition}) {
- ${cursor}
-}</template>
-<template name="switch" description="switch case statement" context="php" enabled="true">switch (${key}) {
- case ${value}:
- ${cursor}
- break;
-
- default:
- break;
-}</template><template name="if" description="if statement" context="php" enabled="true">if (${condition}) {
- ${cursor}
-}</template><template name="ifelse" description="if else statement" context="php" enabled="true">if (${condition}) {
- ${cursor}
-} else {
-
-}</template><template name="elseif" description="else if block" context="php" enabled="true">elseif (${condition}) {
- ${cursor}
-}</template><template name="else" description="else block" context="php" enabled="true">else {
- ${cursor}
-}</template>
-<template name="filecomment" description="file comment used by the class and interface wizards" context="php" enabled="true">/**
- * Created on ${date} by ${user}
- *
- */</template><template name="functioncomment" description="function comment" context="php" enabled="true">/**
- * @author ${user}
- *
- */</template>
- <template name="echo" description="echo a string" context="php" enabled="true">echo "${string}";
- ${cursor}</template>
- </templates>
\ No newline at end of file