X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
index 1e8b109..cdec7e2 100644
--- a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
+++ b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
@@ -1,484 +1,244 @@
-for (var ${index} = 0; ${index} < ${array}.length; ${index}++) {
- ${line_selection}${cursor}
+class ${class_name} {
+ function ${class_name}() {
+ ${cursor}
+ }
}
-
-<?xml ?>
-
-
-<html>
-<head>
-<meta http-equiv="Content-Language" content="en" />
-<meta name="GENERATOR" content="PHPEclipse 1.0" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>${title}</title>
-</head>
-<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
-${cursor}
-</body>
-</html>
-
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-
-<head>
- <meta http-equiv="Content-Language" content="en" />
- <meta name="GENERATOR" content="PHPeclipse 1.9" />
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>${title}</title>
-</head>
+class ${class_name} {
+ var $$${attribute};
+
+ function ${class_name}() {
+ ${cursor}
+ }
+
+ function set_${attribute}( $$${attr} ) {
+ $$this->${attribute} = $$${attr};
+ }
+
+ function get_${attribute}() {
+ return $$this->${attribute};
+ }
+}
+class ${class_name} {
+ public function __construct() {
+ ${cursor}
+ }
+}
+class ${class_name} {
+ public function __construct() {
+ ${cursor}
+ }
+
+ public function __destruct() {
+ }
+}
+class ${class_name} {
+ protected $$${attribute};
+
+ public function __construct() {
+ ${cursor}
+ }
+
+ public function __destruct() {
+ }
+
+ public function set${Attribute}( $$${attr} ) {
+ $$this->${attribute} = $$${attr};
+ }
+
+ public function get${Attribute}() {
+ return $$this->${attribute};
+ }
+}
+class ${class_name} {
+ private $$${attribute};
+
+ public function __construct() {
+ ${cursor}
+ }
+
+ public function __destruct() {
+ }
+
+ public function set${Attribute}( $$${attr} ) {
+ $$this->${attribute} = $$${attr};
+ }
+
+ public function get${Attribute}() {
+ return $$this->${attribute};
+ }
+}
+for ( $$${index} = 0, $$${max_count} = sizeof( $$${array} ); $$${index} < $$${max_count}; $$${index}++ ) {
+ ${cursor}
+}
+for ($$${index} = 0, $$${max_count} = sizeof( $$${array} ); $$${index} < $$${max_count}; $$${index}++) {
+ $$${array_element} = $$${array}[ $$${index} ];
+ ${cursor}
+}
+foreach ( $$${array} as $$${value} ) {
+ ${cursor}
+}
+foreach ( $$${array} as $$${key} => $$${value} ) {
+ ${cursor}
+}
+try {
+ ${try}
+}
+try {
+ ${try}
+}
+catch( Exception $$${e} ) {
+ ${catch}
+}
+try {
+ ${try}
+}
+catch( ${Exception} $$${e} ) {
+ ${catch}
+}
+function ${function_name}() {
+ ${cursor}
+}
+function ${function_name}() {
+ return ${cursor} ;
+}
+function ${function_name}( $$${param} ) {
+ ${cursor}
+}
+function ${function_name}( $$${param} ) {
+ return ${cursor} ;
+}
+while ( ${condition} ) {
+ ${cursor}
+}
+do {
+ ${line_selection}
+} while ( ${condition} );
+switch ( ${key} ) {
+ case ${value}:
+ ${cursor}
+ break;
+
+ default:
+ break;
+}
+if ( ${condition} ) {
+ ${cursor}
+}
+if ( ${condition} ) {
+ ${cursor}
+}
+else {
+
+}
+elseif ( ${condition} ) {
+ ${cursor}
+}
+else {
+ ${cursor}
+}
+
+
+ echo '${string}';
-<body>
-${cursor}
-</body>
-</html>
-
-
- <title>${cursor}</title>
-
-
-
- <table>
- <tr>
- <td>${t00}</td><td>${t01}</td><td>${t02}</td>
- </tr>
- <tr>
- <td>${t10}</td><td>${t11}</td><td>${t12}</td>
- </tr>
- <tr>
- <td>${t20}</td><td>${t21}</td><td>${t22}</td>
- </tr>
- </table>
- ${cursor}
-
-
-
-
- <a href="${link}">${description}</a> ${cursor}
-
-
- <a href="${link}"><img src="${image}"></a> ${cursor}
-
-
- <a name="${anchor}">${description}</a> ${cursor}
-
-
- <p>${cursor}</p>
-
-
- <h1>${cursor}</h1>
-
-
- <h2>${cursor}</h2>
-
-
- <h3>${cursor}</h3>
-
-
- <h4>${cursor}</h4>
-
-
- <h5>${cursor}</h5>
-
-
- <h6>${cursor}</h6>
-
-
- <address>${cursor}</address>
-
-
- <pre>${cursor}</pre>
-
-
- <code>${cursor}</code>
-
-
- <blockquote>${cursor}<br />
- </blockquote>
-
-
- <hr width="100%" size="2" />
- ${cursor}
-
-
- <ul>
- <li>${item1}<br />
- </li>
- <li>${item2}<br />
- </li>
- </ul>
-
-
- <ol>
- <li>${item1}<br />
- </li>
- <li>${item2}<br />
- </li>
- </ol>
-
-
- <dl>
- <dt>${item1}<br />
- </dt>
- <dt>${item2}<br />
- </dt>
- </dl>
-
-
- <dl>
- <dd>${item1}<br />
- </dd>
- <dd>${item2}<br />
- </dd>
- </dl>
-
-
- <form action="${link}" method="${get}">
- ${cursor}
- </form>
-
-
- <form action="${link}" method="${post}" enctype="text/plain">
- ${cursor}
- </form>
-
-
- <form action="${link}" method="${post}" enctype="multipart/form-data">
- <p>${text}</p>
- <input type="file" name="${name}" size="50" maxlength="100000" accept="text/*" /><br />
- <input type="submit" value="${value}" />
- ${cursor}
- </form>
-
-
- <input type="text" name="${name}" value="${value}" size="40" maxlength="40" />
- ${cursor}
-
-
- <input type="password" name="${name}" size="40" maxlength="40" />
- ${cursor}
-
-
- <input type="radio" name="${name}" value="${value}" />
- ${cursor}
-
-
- <input type="checkbox" name="${name}" value="${value}" />
- ${cursor}
-
-
- <input type="button" name="${name}" value="${value}" />
- ${cursor}
-
-
- <input type="submit" name="${name}" value="${value}" />
- ${cursor}
-
-
- <input type="reset" name="${name}" value="${value}" />
- ${cursor}
-
-
- <textarea name="${name}" rows="10" cols="50" wrap="off">
- ${text}
- </textarea>
- ${cursor}
-
-
- <select name="${name}" size="3">
- <option value="${value1}">${option1}</option>
- <option value="${value2}">${option2}</option>
- <option value="${value3}">${option3}</option>
- </select>
-
-
- <?xml version="1.0"?>
- ${cursor}
-
-
- <?xml-stylesheet type="text/xsl" href="${url}">
- ${cursor}
-
- <script language="JavaScript" type="text/javascript">
- ${cursor}
-</script>
-
- <script language="JavaScript" type="text/javascript" src="${jsfile}.js"></script>${cursor}
-
- <style type="text/css">
-
-</style>
-
- "
- &
- <
- >
-
-
- ¡
- ¢
- £
- ¤
- ¥
- ¦
- &brkbar;
- §
- ¨
- ¨
- ©
- ª
- «
- ¬
- ­
- ®
- ¯
- &hibar;
- °
- ±
- ²
- ³
- ´
- µ
- ¶
- ·
- ¸
- ¹
- º
- »
- ¼
- ½
- ¾
- ¿
- À
- Á
- Â
- Ã
- Ä
- Å
- Æ
- Ç
- È
- É
- Ê
- Ë
- &lgrave;
- ĺ
- &lcirc;
- &luml;
- Ð
- Ñ
- Ò
- Ó
- Ô
- Õ
- Ö
- ×
- Ø
- Ù
- Ú
- Û
- Ü
- Ý
- Þ
- ß
- à
- á
- â
- ã
- ä
- å
- æ
- ç
- è
- é
- ê
- ë
- ì
- í
- î
- ï
- ð
- ñ
- ò
- ó
- ô
- õ
- ö
- ÷
- ø
- ù
- ú
- û
- ü
- ý
- þ
- ÿ
+
- #00FFFF
- #000000
- #0000FF
- #A52A2A
- #00FFFF
- #FF00FF
- #FFD700
- #808080
- #008000
- #00FF00
- #FF00FF
- #800000
- #000080
- #808000
- #FFA500
- #FFC0CB
- #800080
- #FF0000
- #C0C0C0
- #008080
- #FFFFFF
- #FFFF00
+ <code>${cursor}</code>
- #00FFFF
- #000000
- #0000FF
- #A52A2A
- #00FFFF
- #FF00FF
- #FFD700
- #808080
- #008000
- #00FF00
- #FF00FF
- #800000
- #000080
- #808000
- #FFA500
- #FFC0CB
- #800080
- #FF0000
- #C0C0C0
- #008080
- #FFFFFF
- #FFFF00
- <br />${cursor}
- <div id="${id}">${cursor}</div>
- <strong>${cursor}</strong>
-
- {assign var="${name}" value="${value}"}
- {capture name=${name}}
-${cursor}
-{/capture}
-{config_load file="${file}"}
-{config_load file="${file}" section="${section}"}
-{counter start=${start} skip=${skip} print=false}
-{counter}{cycle values="${values}"}
-{eval var=#${conf}#}
-{eval var=$$${var}}
-{fetch file="${file}"}
-{foreach from=$$${from} item=${item}}
-${cursor}
-{/foreach}
-{foreach from=$$${from} item=${item} key=${key}}
-${cursor}
-{/foreach}
-{foreach from=$$${from} item=${item} name=${name}}
-${cursor}
-{/foreach}
-{foreach from=$$${from} item=${item}}
-${cursor}
-{foreachelse}
-{/foreach}
-{foreach from=$$${from} item=${item} key=${key}}
-${cursor}
-{foreachelse}
-{/foreach}
-{foreach from=$$${from} item=${item} name=${name}}
-${cursor}
-{foreachelse}
-{/foreach}
-{if $$${var}}${cursor}{/if}{if $$${var}}
-${cursor}
-{elseif $$${var2}}
+ <code>null</code>
-{/if}{if $$${var}}
-${cursor}
-{elseif $$${var2}}
+ <pre>${cursor}</pre>
-{else}
+ <b>${cursor}</b>
-{/if}
-{if $$${var}}
-${cursor}
-{else}
+ <i>${cursor}</i>
-{/if}{include file="${file}"}
-{include_php file="${file}"}
-{ldelim}
-{literal}
-${cursor}
-{/literal}
-{rdelim}
-{section name=${name} loop=$$${loop}}
-${cursor}
-{/section}{section name=${name} loop=$$${loop}}
-${cursor}
-{sectionelse}
+ @abstract
+ @access private
+ @access protected
+ @access public
+ @author ${user}
+ @author ${user} <${email}>
+ @category ${categoryname}
+ @copyright Copyright © ${year}, ${user}
+ @deprecated ${version} - ${date}
+ @example ${path} ${description}
+ @final
+ @filesource
+ @global ${datatype} $$GLOBALS['${globalvariable}']
+ @global ${datatype} ${description}
+ @ignore
+ @internal ${comment}
+ @license ${url} ${nameoflicense}
+ @link ${url} ${description}
+ @method ${returntype} ${description}
+ @name ${globalvariable}
+ @package ${packagename}
+ @param ${datatype} ${paramname} ${description}
+ @param ${datatype} ${paramname}
+ @param ${datatype1}|${datatype2} ${paramname} ${description}
+ @property ${datatype} ${paramname} ${description}
+ @property-read ${datatype} ${paramname} ${description}
+ @property-write ${datatype} ${paramname} ${description}
+ @return ${datatype} ${description}
+ @see ${element}@since ${version} - ${date}
+ @since ${version}
+ @static
+ @staticvar ${datatype} ${description}
+ @subpackage ${subpackagename}
+ @todo ${information_string}
+ @tutorial ${string} ${description}
+ @uses ${element} ${description}
+ @var ${datatype} ${description}
+ @version ${versionstring}
-{/section}{$$smarty.cookies.${var}}
-{$$smarty.env.${var}}
-{$$smarty.get.${var}}
-{$$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-{$$smarty.now}
-{$$smarty.post.${var}}
-{$$smarty.request.${var}}
-{$$smarty.server.${var}}
-{strip}
-${cursor}
-{/strip}
-{$$${var}|capitalize}
-{$$${var}|count_characters}
-{$$${var}|count_paragraphs}
-{$$${var}|count_sentences}
-{$$${var}|count_words}
-{$$${var}|date_format:"%Y-%m-%d %H:%M:%S"}
-{$$${var}|default:"${text}"}
-{$$${var}|escape:"${value}"}
-{$$${var}|escape}
-{$$${var}|indent:${nr}}
-{$$${var}|indent}
-{$$${var}|lower}
-{$$${var}|nl2br}
-{$$${var}|regex_replace:"${regex}":"${replace}"}
-{$$${var}|replace:"${find}":"${replace}"}
-{$$${var}|spacify}
-{$$${var}|string_format:"%.2f"}
-{$$${var}|strip_tags}
-{$$${var}|strip}
-{$$${var}|truncate:${nr}}
-{$$${var}|upper}
-{$$${var}|wordwrap:${nr}:"${sign}"}
-
\ No newline at end of file
+ {@example ${uri_or_path_to_file} ${startline} ${number_of_lines}}
+ {@id ${sectionname}}
+ {@internal ${any_text}}}
+ {@inheritdoc}
+ {@link ${URL} ${description}}
+ {@link ${element} ${description}}
+ {@source}
+ {@source ${startline}}
+ {@source ${startline} ${number_of_lines}}
+