X-Git-Url: http://git.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
index aac90e5..cdec7e2 100644
--- a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
+++ b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
@@ -1,407 +1,244 @@
-for (var ${index} = 0, ${index2} = ${array}.length; ${index} < ${index2}; ${index}++) {
- ${line_selection}${cursor}
+class ${class_name} {
+ function ${class_name}() {
+ ${cursor}
+ }
}
- <?xml ?>
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Language" content="en" />
- <meta name="GENERATOR" content="PHPEclipse 1.2.0" />
- <title>${title}</title>
-</head>
-<body>
-${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" lang="en_US" xml:lang="en_US">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Language" content="en" />
- <meta name="GENERATOR" content="PHPEclipse 1.2.0" />
- <title>${title}</title>
-</head>
-<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}" alt="${alt}" /></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>
- <p>${cursor}</p>
-</blockquote>
- <hr />${cursor}
- <ul>
- <li>${item1}</li>
- <li>${item2}</li>
-</ul>
- <ol>
- <li>${item1}</li>
- <li>${item2}</li>
-</ol>
- <dl>
- <dt>${item1}</dt>
- <dt>${item2}</dt>
-</dl>
- <dl>
- <dd>${item1}</dd>
- <dd>${item2}</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">
-<label for="${name}">${text}</label>
-<input type="file" id="${name}" name="${name}" size="50" maxlength="100000" accept="text/*" />
-${cursor}
-<input type="submit" value="${value}" />
-</form>
- <input type="text" class="text" name="${name}" value="${value}" size="40" maxlength="40" />
-${cursor}
- <input type="password" class="password" name="${name}" size="40" maxlength="40" />
-${cursor}
- <input type="radio" class="radio" name="${name}" value="${value}" />
-${cursor}
- <input type="checkbox" class="checkbox" name="${name}" value="${value}" />
-${cursor}
- <input type="button" class="button" name="${name}" value="${value}" />
-${cursor}
- <input type="submit" class="submit" name="${name}" value="${value}" />
-${cursor}
- <input type="reset" class="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 type="text/javascript">
-${cursor}
-</script>
- <script type="text/javascript" src="${jsfile}.js"></script>${cursor}
- <style type="text/css">
-${cursor}
-</style>
- "
- &
- <
- >
+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}';
-
- ¡
- ¢
- £
- ¤
- ¥
- ¦
- &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}}
+