Permalink
Browse files

Added for, foreach, if, set shortcuts

  • Loading branch information...
1 parent 1c79b43 commit 098b6da27f12fc341fa2d5904fd6a572a0f84033 @abtris committed Aug 26, 2011
Showing with 66 additions and 0 deletions.
  1. +66 −0 PHP.xml
View
66 PHP.xml
@@ -17,5 +17,71 @@
<option name="OTHER" value="false" />
</context>
</template>
+ <template name="for" value="for ($VAR$=0;$VAR$&lt;=$MAX$;$VAR$++) {&#10; $END$&#10;}&#10;" description="" toReformat="false" toShortenFQNames="true">
+ <variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
+ <variable name="MAX" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="JSP" value="false" />
+ <option name="SQL" value="false" />
+ <option name="PHP" value="true" />
+ <option name="HAML" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="foreach" value="foreach ($VARS$ as $VAR$) {&#10; $END$&#10;}" description="" toReformat="false" toShortenFQNames="true">
+ <variable name="VARS" expression="" defaultValue="" alwaysStopAt="true" />
+ <variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="JSP" value="false" />
+ <option name="SQL" value="false" />
+ <option name="PHP" value="true" />
+ <option name="HAML" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="if" value="if ($COND$) {&#10; $END$&#10;}" description="" toReformat="false" toShortenFQNames="true">
+ <variable name="COND" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="JSP" value="false" />
+ <option name="SQL" value="false" />
+ <option name="PHP" value="true" />
+ <option name="HAML" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="set" value="isset($VAR$) ? $VAR$ : null " description="" toReformat="false" toShortenFQNames="true">
+ <variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="JSP" value="false" />
+ <option name="SQL" value="false" />
+ <option name="PHP" value="true" />
+ <option name="HAML" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
</templateSet>

0 comments on commit 098b6da

Please sign in to comment.