-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLaravel-Requests-and-Input.xml
124 lines (124 loc) · 7.68 KB
/
Laravel-Requests-and-Input.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<templateSet group="Laravel-Requests-and-Input">
<template name="Input::get" value="Input::get('$NAME$');$END$" description="Retrieve an Input value" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::getWithDefault" value="Input::get('$NAME$', '$DEFAULT$');$END$" description="Retrieve an Input value with Default" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="DEFAULT" expression="" defaultValue=""default"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::all" value="Input::all();$END$" description="Retrieve all Inputs" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::has" value="Input::has('$NAME$');$END$" description="Determine if Input Value is Present" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::only" value="Input::only($NAME$);$END$" description="Retrieve only some of the Request Input" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""'username', 'password'"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::except" value="Input::except($NAME$);$END$" description="Retrieve only some of the Request Input" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""'username', 'password'"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::flash" value="Input::flash();$END$" description="Flash Input to the Session" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::flashOnly" value="Input::flashOnly($NAME$);$END$" description="Flash only some Input to the Session" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""'username', 'password'"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::flashExcept" value="Input::flashExcept($NAME$);$END$" description="Flash only some Input to the Session" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""'username', 'password'"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::old" value="Input::old('$NAME$');$END$" description="Retrieve Old Data" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::oldWithDefault" value="Input::old('$NAME$', '$DEFAULT$');$END$" description="Retrieve Old Data with Default" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="DEFAULT" expression="" defaultValue=""default"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::file" value="Input::file('$NAME$');$END$" description="Retrieve Uploaded File" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::hasFile" value="Input::hasFile('$NAME$');$END$" description="Determine if File was Uploaded" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::fileMove" value="Input::file('$NAME$')->move($DESTINATION$, $FILENAME$);$END$" description="Move an Uploaded File" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="DESTINATION" expression="" defaultValue=""$destinationPath"" alwaysStopAt="true" />
<variable name="FILENAME" expression="" defaultValue=""$fileName"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Input::fileProperty" value="Input::file('$NAME$')->$PROPERTY$;$END$" description="Get Property of Uploaded File" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="PROPERTY" expression="enum("getRealPath()", "getClientOriginalName()", "getClientOriginalExtension()", "getSize()", "getMimeType()")" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Cookie::get" value="Cookie::get('$NAME$');$END$" description="Retrieve a Cookie value" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Cookie::make" value="Cookie::$TYPE$('$NAME$', $VALUE$, $MINUTES$);$END$" description="Make/Queue a Cookie" toReformat="false" toShortenFQNames="true">
<variable name="TYPE" expression="enum("make", "queue")" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="VALUE" expression="" defaultValue=""$value"" alwaysStopAt="true" />
<variable name="MINUTES" expression="" defaultValue=""1440"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Cookie::forever" value="Cookie::forever('$NAME$', $VALUE$);$END$" description="Make a Permanent Cookie" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" />
<variable name="VALUE" expression="" defaultValue=""$value"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="Request::method" value="Request::$METHOD$($VALUE$);$END$ " description="Various Request Methods to examine HTTP Requests" toReformat="false" toShortenFQNames="true">
<variable name="METHOD" expression="enum("path", "method", "isMethod", "url", "segment", "header", "server", "secure", "ajax", "isJson", "wantsJson", "format")" defaultValue="" alwaysStopAt="true" />
<variable name="VALUE" expression="" defaultValue=""'parameter'"" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
</templateSet>