vimrc/sources_non_forked/vim-snippets/snippets/yii-chtml.snippets

249 lines
7.6 KiB
Text
Raw Normal View History

#--------------------Yii CHtml---------------------------------
#Yii CHtml::radioButton
snippet yhrb
2013-07-17 23:06:05 +00:00
echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${4:optionValue} );
#Yii CHtml::asset
snippet yhass
2013-07-17 23:06:05 +00:00
echo CHtml::asset('${1:path}');
#Yii CHtml::activeLabelEx
snippet yhale
2013-07-17 23:06:05 +00:00
echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::encodeArray
snippet yheca
2013-07-17 23:06:05 +00:00
echo CHtml::encodeArray(array(${1}));
#Yii CHtml::normalizeUrl
snippet yhnurl
2013-07-17 23:06:05 +00:00
echo CHtml::normalizeUrl(array('${1}'));
#Yii CHtml::resetButton
snippet yhsb
2013-07-17 23:06:05 +00:00
echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::linkButton
snippet yhlinkb
2013-07-17 23:06:05 +00:00
echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::activeTextArea
snippet yhata
2013-07-17 23:06:05 +00:00
echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::ajaxButton
snippet yhajb
2013-07-17 23:06:05 +00:00
echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
#Yii CHtml::activeId
snippet yhai
2013-07-17 23:06:05 +00:00
echo CHtml::activeId(${1:model}, '${2:attribute}');
#Yii CHtml::activeCheckBox
snippet yhacb
2013-07-17 23:06:05 +00:00
echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeHiddenField
snippet yhahf
2013-07-17 23:06:05 +00:00
echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::encode
snippet yhec
2013-07-17 23:06:05 +00:00
echo CHtml::encode(${1:text});
#Yii CHtml::metaTag
snippet yhmtag
2013-07-17 23:06:05 +00:00
echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::dropDownList
snippet yhddl
echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::listBox
snippet yhlb
2013-07-17 23:06:05 +00:00
echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::script
snippet yhjs
2013-07-17 23:06:05 +00:00
echo CHtml::script('${1:test}');
#Yii CHtml::ajax
snippet yhaj
2013-07-17 23:06:05 +00:00
echo CHtml::ajax(array(${1}));
#Yii CHtml::textField
snippet yhtf
2013-07-17 23:06:05 +00:00
echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activePasswordField
snippet yhapf
2013-07-17 23:06:05 +00:00
echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::listData
snippet yhld
2013-07-17 23:06:05 +00:00
echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${4:groupField}');
#Yii CHtml::mailto
snippet yhmt
2013-07-17 23:06:05 +00:00
echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::image
snippet yhimg
2013-07-17 23:06:05 +00:00
echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeListBox
snippet yhalb
2013-07-17 23:06:05 +00:00
echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::activeFileField
snippet yhaff
2013-07-17 23:06:05 +00:00
echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::closeTag
snippet yhct
2013-07-17 23:06:05 +00:00
echo CHtml::closeTag('${1:tag}');
#Yii CHtml::activeInputField
snippet yhaif
2013-07-17 23:06:05 +00:00
echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::scriptFile
snippet yhjsf
2013-07-17 23:06:05 +00:00
echo CHtml::scriptFile('${1:url}');
#Yii CHtml::radioButtonList
snippet yhrbl
2013-07-17 23:06:05 +00:00
echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::cssFile
snippet yhcssf
2013-07-17 23:06:05 +00:00
echo CHtml::cssFile('${1:url}','${2:media}');
#Yii CHtml::error
snippet yherr
2013-07-17 23:06:05 +00:00
echo CHtml::error(${1:model}, '${2:attribute}');
#Yii CHtml::passwordField
snippet yhpf
2013-07-17 23:06:05 +00:00
echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::hiddenField
snippet yhhf
2013-07-17 23:06:05 +00:00
echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::cdata
snippet yhc
2013-07-17 23:06:05 +00:00
echo CHtml::cdata(${1:text});
#Yii CHtml::link
snippet yhlink
2013-07-17 23:06:05 +00:00
echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::errorSummary
snippet yherrs
2013-07-17 23:06:05 +00:00
echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${3:footerHtml}');
#Yii CHtml::tag
snippet yht
2013-07-17 23:06:05 +00:00
echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${5:true});
#Yii CHtml::ajaxLink
snippet yhajl
2013-07-17 23:06:05 +00:00
echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
#Yii CHtml::label
snippet yhlabel
2013-07-17 23:06:05 +00:00
echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeName
snippet yhan
2013-07-17 23:06:05 +00:00
echo CHtml::activeName(${1:model}, '${2:attribute}');
#Yii CHtml::statefulForm
snippet yhsform
2013-07-17 23:06:05 +00:00
echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::fileField
snippet yhff
2013-07-17 23:06:05 +00:00
echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeTextField
snippet yhatf
2013-07-17 23:06:05 +00:00
echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::css
snippet yhcss
2013-07-17 23:06:05 +00:00
echo CHtml::css('${1:test}','${2:media}');
#Yii CHtml::imageButton
snippet yhimgb
2013-07-17 23:06:05 +00:00
echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::ajaxSubmitButton
snippet yhajsb
2013-07-17 23:06:05 +00:00
echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
#Yii CHtml::button
snippet yhb
2013-07-17 23:06:05 +00:00
echo CHtml::button('${1:label}',array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::listOptions
snippet yhlo
2013-07-17 23:06:05 +00:00
echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeCheckBoxList
snippet yhacbl
2013-07-17 23:06:05 +00:00
echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::openTag
snippet yhot
2013-07-17 23:06:05 +00:00
echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::checkBox
snippet yhcb
2013-07-17 23:06:05 +00:00
echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::textArea
snippet yhta
2013-07-17 23:06:05 +00:00
echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::linkTag
snippet yhlinkt
2013-07-17 23:06:05 +00:00
echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${6:optionValue}));
#Yii CHtml::resetButton
snippet yhrsb
2013-07-17 23:06:05 +00:00
echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
#Yii CHtml::activeRadioButtonList
snippet yharbl
2013-07-17 23:06:05 +00:00
echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::checkBoxList
snippet yhcbl
2013-07-17 23:06:05 +00:00
echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::form
snippet yhform
echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::beginForm
snippet yhbeform
echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
${5}
2013-07-17 23:06:05 +00:00
echo CHtml::endForm();
#Yii CHtml::activeDropDownList
snippet yhaddl
2013-07-17 23:06:05 +00:00
echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
#Yii CHtml::activeRadioButton
snippet yharb
2013-07-17 23:06:05 +00:00
echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
#Yii CHtml::activeLabel
snippet yhal
2013-07-17 23:06:05 +00:00
echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));