aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/yii-chtml.snippets
blob: e827901e93179475a56304099e952bec790010dd (plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
#--------------------Yii CHtml---------------------------------
#Yii CHtml::radioButton
snippet yhrb
	echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${0:optionValue} );

#Yii CHtml::asset
snippet yhass
	echo CHtml::asset('${0:path}');

#Yii CHtml::activeLabelEx
snippet yhale
	echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::encodeArray
snippet yheca
	echo CHtml::encodeArray(array(${0}));

#Yii CHtml::normalizeUrl
snippet yhnurl
	echo CHtml::normalizeUrl(array('${0}'));

#Yii CHtml::resetButton
snippet yhsb
	echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::linkButton
snippet yhlinkb
	echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::activeTextArea
snippet yhata
	echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::ajaxButton
snippet yhajb
	echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));

#Yii CHtml::activeId
snippet yhai
	echo CHtml::activeId(${1:model}, '${0:attribute}');

#Yii CHtml::activeCheckBox
snippet yhacb
	echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeHiddenField
snippet yhahf
	echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::encode
snippet yhec
	echo CHtml::encode(${0:text});

#Yii CHtml::metaTag
snippet yhmtag
	echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::dropDownList
snippet yhddl
	echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::listBox
snippet yhlb
	echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::script
snippet yhjs
	echo CHtml::script('${0:test}');

#Yii CHtml::ajax
snippet yhaj
	echo CHtml::ajax(array(${0}));

#Yii CHtml::textField
snippet yhtf
	echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activePasswordField
snippet yhapf
	echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::listData
snippet yhld
	echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${0:groupField}');

#Yii CHtml::mailto
snippet yhmt
	echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::image
snippet yhimg
	echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeListBox
snippet yhalb
	echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::activeFileField
snippet yhaff
	echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::closeTag
snippet yhct
	echo CHtml::closeTag('${0:tag}');

#Yii CHtml::activeInputField
snippet yhaif
	echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::scriptFile
snippet yhjsf
	echo CHtml::scriptFile('${0:url}');

#Yii CHtml::radioButtonList
snippet yhrbl
	echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::cssFile
snippet yhcssf
	echo CHtml::cssFile('${1:url}','${0:media}');

#Yii CHtml::error
snippet yherr
	echo CHtml::error(${1:model}, '${0:attribute}');

#Yii CHtml::passwordField
snippet yhpf
	echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::hiddenField
snippet yhhf
	echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::cdata
snippet yhc
	echo CHtml::cdata(${0:text});

#Yii CHtml::link
snippet yhlink
	echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::errorSummary
snippet yherrs
	echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${0:footerHtml}');

#Yii CHtml::tag
snippet yht
	echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${0:true});

#Yii CHtml::ajaxLink
snippet yhajl
	echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));

#Yii CHtml::label
snippet yhlabel
	echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeName
snippet yhan
	echo CHtml::activeName(${1:model}, '${0:attribute}');

#Yii CHtml::statefulForm
snippet yhsform
	echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::fileField
snippet yhff
	echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeTextField
snippet yhatf
	echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::css
snippet yhcss
	echo CHtml::css('${1:test}','${0:media}');

#Yii CHtml::imageButton
snippet yhimgb
	echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::ajaxSubmitButton
snippet yhajsb
	echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));

#Yii CHtml::button
snippet yhb
	echo CHtml::button('${1:label}',array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::listOptions
snippet yhlo
	echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeCheckBoxList
snippet yhacbl
	echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::openTag
snippet yhot
	echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::checkBox
snippet yhcb
	echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::textArea
snippet yhta
	echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::linkTag
snippet yhlinkt
	echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${0:optionValue}));

#Yii CHtml::resetButton
snippet yhrsb
	echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));

#Yii CHtml::activeRadioButtonList
snippet yharbl
	echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::checkBoxList
snippet yhcbl
	echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::form
snippet yhform
	echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::beginForm
snippet yhbeform
	echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
	${0}
	echo CHtml::endForm();

#Yii CHtml::activeDropDownList
snippet yhaddl
	echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));

#Yii CHtml::activeRadioButton
snippet yharb
	echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));

#Yii CHtml::activeLabel
snippet yhal
	echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));