Skip to content

Instantly share code, notes, and snippets.

@18thAvenue
Last active November 12, 2018 18:23
Show Gist options
  • Save 18thAvenue/7f3cdc7a8355d52c378dd4352141f2d6 to your computer and use it in GitHub Desktop.
Save 18thAvenue/7f3cdc7a8355d52c378dd4352141f2d6 to your computer and use it in GitHub Desktop.
CFWheels Atom editor cfscript snippets
#Cfwheels Snippets for Atom Editor
#I love Atom editor and thought it would be nice to have snippets for CFwheels while writing in script.
#My setup:
#Install language-cfml package
#Install Atom-Beautify package
#Go to File > Snippets > Paste all or just a few of the snippets into your snippets.cson file.
#That's it!
#Be careful with tabs, spaces etc. CSON syntax in snippets is sensitive. If anything out of place it will not work.
#Feel free to make it better or fix anything not working.
# Thanks to https://github.com/timsayshey/Sublime-Text-CFWheels for inspiration and your Sublime text work.
'.source.cfscript':
# A
'accessibleProperties':
'prefix': 'accessibleProperties'
'body': 'accessibleProperties($1);$0'
'addolumn':
'prefix': 'addolumn'
'body': 'addColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'addIndex':
'prefix': 'addIndex'
'body': 'addIndex(table="$1", columnNames="$2"${3:${4:, unique="$5"}${6:, indexName="$7"}});$0'
'addDefaultRoutes':
'prefix': 'addDefaultRoutes'
'body': 'addDefaultRoutes();$0'
'addError':
'prefix': 'addError'
'body': 'addError(${1:${2:property="$3"}${4:, message="$5"}${6:, name="$7"}});$0'
'addErrorToBase':
'prefix': 'addErrorToBase'
'body': 'addErrorToBase(${1:${2:message="$3"}${4:, name="$5"}});$0'
'addRecord':
'prefix': 'addRecord'
'body': 'addRecord(table="$1", $2);$0'
'accessibleProperties':
'prefix': 'accessibleProperties'
'body': 'accessibleProperties($1);$0'
'Add Column':
'prefix': 'Add Column'
'body': 'addColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'Add Index':
'prefix': 'Add Index'
'body': 'addIndex(table="$1", columnNames="$2"${3:${4:, unique="$5"}${6:, indexName="$7"}});$0'
'addDefaultRoutes':
'prefix': 'addDefaultRoutes'
'body': 'addDefaultRoutes();$0'
'addError':
'prefix': 'addError'
'body': 'addError(${1:${2:property="$3"}${4:, message="$5"}${6:, name="$7"}});$0'
'addErrorToBase':
'prefix': 'addErrorToBase'
'body': 'addErrorToBase(${1:${2:message="$3"}${4:, name="$5"}});$0'
'addRecord':
'prefix': 'addRecord'
'body': 'addRecord(table="$1", $2);$0'
'accessibleProperties':
'prefix': 'accessibleProperties'
'body': 'accessibleProperties($1);$0'
'Add Column':
'prefix': 'Add Column'
'body': 'addColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'Add Index':
'prefix': 'Add Index'
'body': 'addIndex(table="$1", columnNames="$2"${3:${4:, unique="$5"}${6:, indexName="$7"}});$0'
'addDefaultRoutes':
'prefix': 'addDefaultRoutes'
'body': 'addDefaultRoutes();$0'
'addError':
'prefix': 'addError'
'body': 'addError(${1:${2:property="$3"}${4:, message="$5"}${6:, name="$7"}});$0'
'addErrorToBase':
'prefix': 'addErrorToBase'
'body': 'addErrorToBase(${1:${2:message="$3"}${4:, name="$5"}});$0'
'addRecord':
'prefix': 'addRecord'
'body': 'addRecord(table="$1", $2);$0'
'accessibleProperties':
'prefix': 'accessibleProperties'
'body': 'accessibleProperties($1);$0'
'Add Column':
'prefix': 'Add Column'
'body': 'addColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'Add Index':
'prefix': 'Add Index'
'body': 'addIndex(table="$1", columnNames="$2"${3:${4:, unique="$5"}${6:, indexName="$7"}});$0'
'addDefaultRoutes':
'prefix': 'addDefaultRoutes'
'body': 'addDefaultRoutes();$0'
'addError':
'prefix': 'addError'
'body': 'addError(${1:${2:property="$3"}${4:, message="$5"}${6:, name="$7"}});$0'
'addErrorToBase':
'prefix': 'addErrorToBase'
'body': 'addErrorToBase(${1:${2:message="$3"}${4:, name="$5"}});$0'
'addRecord':
'prefix': 'addRecord'
'body': 'addRecord(table="$1", $2);$0'
'accessibleProperties':
'prefix': 'accessibleProperties'
'body': 'accessibleProperties($1);$0'
'Add Column':
'prefix': 'Add Column'
'body': 'addColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'Add Index':
'prefix': 'Add Index'
'body': 'addIndex(table="$1", columnNames="$2"${3:${4:, unique="$5"}${6:, indexName="$7"}});$0'
'addDefaultRoutes':
'prefix': 'addDefaultRoutes'
'body': 'addDefaultRoutes();$0'
'addError':
'prefix': 'addError'
'body': 'addError(${1:${2:property="$3"}${4:, message="$5"}${6:, name="$7"}});$0'
'addErrorToBase':
'prefix': 'addErrorToBase'
'body': 'addErrorToBase(${1:${2:message="$3"}${4:, name="$5"}});$0'
'addRecord':
'prefix': 'addRecord'
'body': 'addRecord(table="$1", $2);$0'
'addRoute':
'prefix': 'addRoute'
'body': 'addRoute(${1:${2:name="$3"}${4:, action="$5"}${6:, controller="$7"}${8:, pattern="$9"}});$0'
'afterCreate':
'prefix': 'afterCreate'
'body': 'afterCreate(${1:${2:methods="$3"}});$0'
'afterDelete':
'prefix': 'afterDelete'
'body': 'afterDelete(${1:${2:methods="$3"}});$0'
'afterFind':
'prefix': 'afterFind'
'body': 'afterFind(${1:${2:methods="$3"}});$0'
'afterInitialization':
'prefix': 'afterInitialization'
'body': 'afterInitialization(${1:${2:methods="$3"}});$0'
'afterNew':
'prefix': 'afterNew'
'body': 'afterNew(${1:${2:methods="$3"}});$0'
'afterSave':
'prefix': 'afterSave'
'body': 'afterSave(${1:${2:methods="$3"}});$0'
'afterUpdate':
'prefix': 'afterUpdate'
'body': 'afterUpdate(${1:${2:methods="$3"}});$0'
'afterValidation':
'prefix': 'afterValidation'
'body': 'afterValidation(${1:${2:methods="$3"}});$0'
'afterValidationOnCreate':
'prefix': 'afterValidationOnCreate'
'body': 'afterValidationOnCreate(${1:${2:methods="$3"}});$0'
'afterValidationOnUpdate':
'prefix': 'afterValidationOnUpdate'
'body': 'afterValidationOnUpdate(${1:${2:methods="$3"}});$0'
'allChanges':
'prefix': 'allChanges'
'body': 'allChanges();$0'
'allErrors':
'prefix': 'allErrors'
'body': 'allErrors();$0'
'announce':
'prefix': 'announce'
'body': 'announce($1);$0'
'autoLink':
'prefix': 'autoLink'
'body': 'autoLink(${1:${2:text="$3"}${4:, link="$5"}});$0'
'average':
'prefix': 'average'
'body': 'average(${1:${2:property="$3"}${4:, where="$5"}${6:, include="$7"}${8:, distinct="$9"}});$0'
'beforeCreate':
'prefix': 'beforeCreate'
'body': 'beforeCreate(${1:${2:methods="$3"}});$0'
'beforeDelete':
'prefix': 'beforeDelete'
'body': 'beforeDelete(${1:${2:methods="$3"}});$0'
'beforeSave':
'prefix': 'beforeSave'
'body': 'beforeSave(${1:${2:methods="$3"}});$0'
'beforeUpdate':
'prefix': 'beforeUpdate'
'body': 'beforeUpdate(${1:${2:methods="$3"}});$0'
'beforeValidation':
'prefix': 'beforeValidation'
'body': 'beforeValidation(${1:${2:methods="$3"}});$0'
'beforeValidationOnCreate':
'prefix': 'beforeValidationOnCreate'
'body': 'beforeValidationOnCreate(${1:${2:methods="$3"}});$0'
'beforeValidationOnUpdate':
'prefix': 'beforeValidationOnUpdate'
'body': 'beforeValidationOnUpdate(${1:${2:methods="$3"}});$0'
'belongsTo':
'prefix': 'belongsTo'
'body': 'belongsTo(${1:${2:name="$3"}${4:, class="$5"}${6:, foreignKey="$7"}${8:, joinType="$9"}});$0'
'boolean':
'prefix': 'boolean'
'body': 't.boolean(${1:${2:columnNames="$3"}${4:${5:, default="$6"}${7:, null="$8"}}});$0'
'buttonTo':
'prefix': 'buttonTo'
'body': 'buttonTo(${1:${2:text="$3"}${4:, confirm="$5"}${6:, image="$7"}${8:, disable="$9"}${10:, route="$11"}${12:, controller="$13"}${14:, action="$15"}${16:, key="$17"}${18:, params="$19"}${20:, anchor="$21"}${22:, onlyPath="$23"}${24:, host="$25"}${26:, protocol="$27"}${28:, port="$29"}});$0'
'caches':
'prefix': 'caches'
'body': 'caches(${1:${2:actions="$3"}${4:, time="$5"}});$0'
'capitalize':
'prefix': 'capitalize'
'body': 'capitalize(${1:${2:text="$3"}});$0'
'Change Column':
'prefix': 'Change Column'
'body': 'changeColumn(table="$1", columnType="$2", columnName="$3"${4:${5:, referenceName="$6"}${7:, default="$8"}${9:, null="$10"}${11:, limit="$12"}${13:, precision="$14"}${15:, scale="$16"}});$0'
'changedFrom':
'prefix': 'changedFrom'
'body': 'changedFrom(${1:${2:property="$3"}});$0'
'changedProperties':
'prefix': 'changedProperties'
'body': 'changedProperties();$0'
'changeTable':
'prefix': 'changeTable'
'body': 't = changeTable("$1");$2t.change();$0'
'checkBox':
'prefix': 'checkBox'
'body': 'checkBox(${1:${2:label="$3"}${4:, labelPlacement="$5"}${6:, checkedValue="$7"}${8:, errorElement="$9"}${10:, appendToLabel="$11"}${12:, prependToLabel="$13"}${14:, append="$15"}${16:, prepend="$17"}${18:, uncheckedValue="$19"}${20:, property="$21"}${22:, objectName="$23"}});$0'
'checkBoxTag':
'prefix': 'checkBoxTag'
'body': 'checkBoxTag(${1:${2:name="$3"}${4:, checked="$5"}${6:, value="$7"}${8:, label="$9"}${10:, labelPlacement="$11"}${12:, prepend="$13"}${14:, append="$15"}${16:, prependToLabel="$17"}${18:, appendToLabel="$19"}});$0'
'clearErrors':
'prefix': 'clearErrors'
'body': 'clearErrors(${1:${2:property="$3"}${4:, name="$5"}});$0'
'columnNames':
'prefix': 'columnNames'
'body': 'columnNames();$0'
'contentForLayout':
'prefix': 'contentForLayout'
'body': 'contentForLayout();$0'
'count':
'prefix': 'count'
'body': 'count(${1:${2:where="$3"}${4:, include="$5"}});$0'
'create':
'prefix': 'create'
'body': 'create(${1:${2:properties="$3"}${4:, defaults="$5"}${6:, parameterize="$7"}});$0'
'Create Table':
'prefix': 'Create Table'
'body': 't = createTable("$1");$0'
'cycle':
'prefix': 'cycle'
'body': 'cycle(${1:${2:values="$3"}${4:, name="$5"}});$0'
'dataSource':
'prefix': 'dataSource'
'body': 'dataSource(${1:${2:datasource="$3"}${4:, username="$5"}${6:, password="$7"}});$0'
'date':
'prefix': 'date'
'body': 't.date(${1:${2:columnNames="$3"}${4:${5:, default="$6"}${7:, null="$8"}}});$0'
'dateSelect':
'prefix': 'dateSelect'
'body': 'dateSelect(${1:${2:objectName="$3"}${4:, property="$5"}${6:, order="$7"}${8:, separator="$9"}${10:, startYear="$11"}${12:, endYear="$13"}${14:, monthDisplay="$15"}${16:, includeBlank="$17"}${18:, label="$19"}${20:, labelPlacement="$21"}${22:, prepend="$23"}${24:, append="$25"}${26:, prependToLabel="$27"}${28:, appendToLabel="$29"}${30:, errorElement="$31"}});$0'
'dateSelectTags':
'prefix': 'dateSelectTags'
'body': 'dateSelectTags(${1:${2:name="$3"}${4:, selected="$5"}${6:, order="$7"}${8:, separator="$9"}${10:, startYear="$11"}${12:, endYear="$13"}${14:, monthDisplay="$15"}${16:, includeBlank="$17"}${18:, label="$19"}${20:, labelPlacement="$21"}${22:, prepend="$23"}${24:, append="$25"}${26:, prependToLabel="$27"}${28:, appendToLabel="$29"}});$0'
'datetime':
'prefix': 'datetime'
'body': 't.dateTime(${1:${2:columnNames="$3"}${4:${5:, default="$6"}${7:, null="$8"}}});$0'
'dateTimeSelect':
'prefix': 'dateTimeSelect'
'body': 'dateTimeSelect(${1:${2:objectName="$3"}${4:, property="$5"}${6:, dateOrder="$7"}${8:, dateSeparator="$9"}${10:, startYear="$11"}${12:, endYear="$13"}${14:, monthDisplay="$15"}${16:, timeOrder="$17"}${18:, timeSeparator="$19"}${20:, minuteStep="$21"}${22:, separator="$23"}${24:, includeBlank="$25"}${26:, label="$27"}${28:, labelPlacement="$29"}${30:, prepend="$31"}${32:, append="$33"}${34:, prependToLabel="$35"}${36:, appendToLabel="$37"}${38:, errorElement="$39"}});$0'
'dateTimeSelectTags':
'prefix': 'dateTimeSelectTags'
'body': 'dateTimeSelectTags(${1:${2:dateOrder="$3"}${4:, dateSeparator="$5"}${6:, startYear="$7"}${8:, endYear="$9"}${10:, monthDisplay="$11"}${12:, timeOrder="$13"}${14:, timeSeparator="$15"}${16:, minuteStep="$17"}${18:, separator="$19"}${20:, includeBlank="$21"}${22:, label="$23"}${24:, labelPlacement="$25"}${26:, prepend="$27"}${28:, append="$29"}${30:, prependToLabel="$31"}${32:, appendToLabel="$33"}});$0'
'daySelectTag':
'prefix': 'daySelectTag'
'body': 'daySelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, includeBlank="$7"}${8:, label="$9"}${10:, labelPlacement="$11"}${12:, prepend="$13"}${14:, append="$15"}${16:, prependToLabel="$17"}${18:, appendToLabel="$19"}});$0'
'decimal':
'prefix': 'decimal'
'body': 't.dateTime(columnNames="$1"${2:${3:, default="$4"}${5:, null="$6"}${7:, precision="$8"}${9:, scale="$10"}});$0'
'delete':
'prefix': 'delete'
'body': 'delete(${1:${2:parameterize="$3"}});$0'
'deleteAll':
'prefix': 'deleteAll'
'body': 'deleteAll(${1:${2:where="$3"}${4:, include="$5"}${6:, parameterize="$7"}${8:, instantiate="$9"}});$0'
'deleteByKey':
'prefix': 'deleteByKey'
'body': 'deleteByKey(${1:${2:key="$3"}});$0'
'deleteOne':
'prefix': 'deleteOne'
'body': 'deleteOne(${1:${2:where="$3"}${4:, order="$5"}});$0'
'deobfuscateParam':
'prefix': 'deobfuscateParam'
'body': 'deobfuscateParam(${1:${2:param="$3"}});$0'
'distanceOfTimeInWords':
'prefix': 'distanceOfTimeInWords'
'body': 'distanceOfTimeInWords(${1:${2:fromTime="$3"}${4:, toTime="$5"}${6:, includeSeconds="$7"}});$0'
'Drop Foreign Key':
'prefix': 'Drop Foreign Key'
'body': 'dropForeignKey(table="$1", keyName="$2");$0'
'Drop Table':
'prefix': 'Drop Table'
'body': 't = dropTable("$1");$0'
'endFormTag':
'prefix': 'endFormTag'
'body': 'endFormTag();$0'
'errorCount':
'prefix': 'errorCount'
'body': 'errorCount(${1:${2:property="$3"}${4:, name="$5"}});$0'
'errorMessageOn':
'prefix': 'errorMessageOn'
'body': 'errorMessageOn(${1:${2:objectName="$3"}${4:, property="$5"}${6:, prependText="$7"}${8:, appendText="$9"}${10:, wrapperElement="$11"}${12:, class="$13"}});$0'
'errorMessagesFor':
'prefix': 'errorMessagesFor'
'body': 'errorMessagesFor(${1:${2:objectName="$3"}${4:, class="$5"}${6:, showDuplicates="$7"}});$0'
'errorsOn':
'prefix': 'errorsOn'
'body': 'errorsOn(${1:${2:property="$3"}${4:, name="$5"}});$0'
'errorsOnBase':
'prefix': 'errorsOnBase'
'body': 'errorsOnBase(${1:${2:name="$3"}});$0'
'excerpt':
'prefix': 'excerpt'
'body': 'excerpt(${1:${2:text="$3"}${4:, phrase="$5"}${6:, radius="$7"}${8:, excerptString="$9"}});$0'
'execute':
'prefix': 'execute'
'body': 'execute($1);$0'
'exists':
'prefix': 'exists'
'body': 'exists(${1:${2:key="$3"}${4:, where="$5"}${6:, reload="$7"}${8:, parameterize="$9"}});$0'
'fileField':
'prefix': 'fileField'
'body': 'fileField(${1:${2:objectName="$3"}${4:, property="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}${18:, errorElement="$19"}});$0'
'fileFieldTag':
'prefix': 'fileFieldTag'
'body': 'fileFieldTag(${1:${2:name="$3"}${4:, label="$5"}${6:, labelPlacement="$7"}${8:, prepend="$9"}${10:, append="$11"}${12:, prependToLabel="$13"}${14:, appendToLabel="$15"}});$0'
'filters':
'prefix': 'filters'
'body': 'filters(${1:${2:through="$3"}${4:, type="$5"}${6:, only="$7"}${8:, except="$9"}});$0'
'findAll':
'prefix': 'findAll'
'body': 'findAll(${1:${2:where="$3"}${4:, order="$5"}${6:, select="$7"}${8:, distinct="$9"}${10:, include="$11"}${12:, maxRows="$13"}${14:, page="$15"}${16:, perPage="$17"}${18:, count="$19"}${20:, handle="$21"}${22:, cache="$23"}${24:, reload="$25"}${26:, parameterize="$27"}${28:, returnAs="$29"}${30:, returnIncluded="$31"}});$0'
'findByKey':
'prefix': 'findByKey'
'body': 'findByKey(${1:${2:key="$3"}${4:, select="$5"}${6:, include="$7"}${8:, cache="$9"}${10:, reload="$11"}${12:, parameterize="$13"}${14:, returnAs="$15"}});$0'
'findOne':
'prefix': 'findOne'
'body': 'findOne(${1:${2:where="$3"}${4:, order="$5"}${6:, select="$7"}${8:, include="$9"}${10:, cache="$11"}${12:, reload="$13"}${14:, parameterize="$15"}${16:, returnAs="$17"}});$0'
'flash':
'prefix': 'flash'
'body': 'flash(${1:${2:key="$3"}});$0'
'flashClear':
'prefix': 'flashClear'
'body': 'flashClear();$0'
'flashCount':
'prefix': 'flashCount'
'body': 'flashCount();$0'
'flashDelete':
'prefix': 'flashDelete'
'body': 'flashDelete(${1:${2:key="$3"}});$0'
'flashInsert':
'prefix': 'flashInsert'
'body': 'flashInsert();$0'
'flashIsEmpty':
'prefix': 'flashIsEmpty'
'body': 'flashIsEmpty();$0'
'flashKeyExists':
'prefix': 'flashKeyExists'
'body': 'flashKeyExists(${1:${2:key="$3"}});$0'
'float':
'prefix': 'float'
'body': 't.float(columnNames="$1"${2:${3:, default="$4"}${5:, null="$6"}});$0'
'get':
'prefix': 'get'
'body': 'get(${1:${2:functionName="$3"}${4:, name="$5"}});$0'
'hasChanged':
'prefix': 'hasChanged'
'body': 'hasChanged(${1:${2:property="$3"}});$0'
'hasErrors':
'prefix': 'hasErrors'
'body': 'hasErrors(${1:${2:property="$3"}${4:, name="$5"}});$0'
'hasMany':
'prefix': 'hasMany'
'body': 'hasMany(${1:${2:name="$3"}${4:, class="$5"}${6:, foreignKey="$7"}${8:, joinType="$9"}${10:, shortcut="$11"}${12:, through="$13"}});$0'
'hasOne':
'prefix': 'hasOne'
'body': 'hasOne(${1:${2:name="$3"}${4:, class="$5"}${6:, foreignKey="$7"}${8:, joinType="$9"}});$0'
'hiddenField':
'prefix': 'hiddenField'
'body': 'hiddenField(${1:${2:objectName="$3"}${4:, property="$5"}});$0'
'hiddenFieldTag':
'prefix': 'hiddenFieldTag'
'body': 'hiddenFieldTag(${1:${2:name="$3"}${4:, value="$5"}});$0'
'highlight':
'prefix': 'highlight'
'body': 'highlight(${1:${2:text="$3"}${4:, phrases="$5"}${6:, class="$7"}});$0'
'hourSelectTag':
'prefix': 'hourSelectTag'
'body': 'hourSelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, includeBlank="$7"}${8:, label="$9"}${10:, labelPlacement="$11"}${12:, prepend="$13"}${14:, append="$15"}${16:, prependToLabel="$17"}${18:, appendToLabel="$19"}});$0'
'humanize':
'prefix': 'humanize'
'body': 'humanize(${1:${2:text="$3"}});$0'
'imageTag':
'prefix': 'imageTag'
'body': 'imageTag(${1:${2:source="$3"}});$0'
'includePartial':
'prefix': 'includePartial'
'body': 'includePartial(${1:${2:partial="$3"}${4:, group="$5"}${6:, cache="$7"}${8:, layout="$9"}${10:, spacer="$11"}});$0'
'integer':
'prefix': 'integer'
'body': 't.integer(${1:${2:columnNames="$3"}${4:, limit="$5"}${6:${7:, default="$8"}${9:, null="$10"}}});$0'
'isAjax':
'prefix': 'isAjax'
'body': 'isAjax();$0'
'isGet':
'prefix': 'isGet'
'body': 'isGet();$0'
'isNew':
'prefix': 'isNew'
'body': 'isNew();$0'
'isPost':
'prefix': 'isPost'
'body': 'isPost();$0'
'javaScriptIncludeTag':
'prefix': 'javaScriptIncludeTag'
'body': 'javaScriptIncludeTag(${1:${2:sources="$3"}${4:, type="$5"}});$0'
'key':
'prefix': 'key'
'body': 'key();$0'
'linkTo':
'prefix': 'linkTo'
'body': 'linkTo(${1:${2:text="$3"}${4:, controller="$5"}${6:, action="$7"}${8:, route="$9"}${10:${11:, key="$12"}${13:, params="$14"}${4:, confirm="$15"}${16:, anchor="$17"}${18:, onlyPath="$19"}${20:, host="$21"}${22:, protocol="$23"}${24:, port="$25"}}});$0'
'mailTo':
'prefix': 'mailTo'
'body': 'mailTo(${1:${2:emailAddress="$3"}${4:, name="$5"}${6:, encode="$7"}});$0'
'maximum':
'prefix': 'maximum'
'body': 'maximum(${1:${2:property="$3"}${4:, where="$5"}${6:, include="$7"}});$0'
'minimum':
'prefix': 'minimum'
'body': 'minimum(${1:${2:property="$3"}${4:, where="$5"}${6:, include="$7"}});$0'
'minuteSelectTag':
'prefix': 'minuteSelectTag'
'body': 'minuteSelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, minuteStep="$7"}${8:, includeBlank="$9"}${10:, label="$11"}${12:, labelPlacement="$13"}${14:, prepend="$15"}${16:, append="$17"}${18:, prependToLabel="$19"}${20:, appendToLabel="$21"}});$0'
'model':
'prefix': 'model'
'body': 'model(${1:${2:name="$3"}});$0'
'monthSelectTag':
'prefix': 'monthSelectTag'
'body': 'monthSelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, monthDisplay="$7"}${8:, includeBlank="$9"}${10:, label="$11"}${12:, labelPlacement="$13"}${14:, prepend="$15"}${16:, append="$17"}${18:, prependToLabel="$19"}${20:, appendToLabel="$21"}});$0'
'nestedProperties':
'prefix': 'nestedProperties'
'body': 'nestedProperties(${1:${2:association="$3"}${4:, autoSave="$5"}${6:, allowDelete="$7"}${8:, sortProperty="$9"}${10:, rejectIfBlank="$11"}});$0'
'new':
'prefix': 'new'
'body': 'new(${1:${2:properties="$3"}${4:, defaults="$5"}});$0'
'obfuscateParam':
'prefix': 'obfuscateParam'
'body': 'obfuscateParam(${1:${2:param="$3"}});$0'
'onlyProvides':
'prefix': 'onlyProvides'
'body': 'onlyProvides(${1:${2:formats="$3"}${4:action="$5"}});$0'
'pagination':
'prefix': 'pagination'
'body': 'pagination(${1:${2:handle="$3"}});$0'
'paginationLinks':
'prefix': 'paginationLinks'
'body': 'paginationLinks(${1:${2:windowSize="$3"}${4:, alwaysShowAnchors="$5"}${6:, anchorDivider="$7"}${8:, linkToCurrentPage="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToPage="$15"}${16:, prependOnFirst="$17"}${18:, appendToPage="$19"}${20:, appendOnLast="$21"}${22:, classForCurrent="$23"}${24:, handle="$25"}${26:, name="$27"}${28:, showSinglePage="$29"}});$0'
'passwordField':
'prefix': 'passwordField'
'body': 'passwordField(${1:${2:objectName="$3"}${4:, property="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}${18:, errorElement="$19"}});$0'
'passwordFieldTag':
'prefix': 'passwordFieldTag'
'body': 'passwordFieldTag(${1:${2:name="$3"}${4:, value="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}});$0'
'pluginNames':
'prefix': 'pluginNames'
'body': 'pluginNames();$0'
'pluralize':
'prefix': 'pluralize'
'body': 'pluralize(${1:${2:word="$3"}${4:, count="$5"}${6:, returnCount="$7"}});$0'
'primaryKey':
'prefix': 'primaryKey'
'body': 'primaryKey();$0'
'properties':
'prefix': 'properties'
'body': 'properties();$0'
'property':
'prefix': 'propertycfw'
'body': 'property(${1:${2:name="$3"}${4:, column="$5"}${6:, sql="$7"}});$0'
'propertyNames':
'prefix': 'propertyNames'
'body': 'propertyNames();$0'
'protectedProperties':
'prefix': 'protectedProperties'
'body': 'protectedProperties(${1:${2:properties="$3"}});$0'
'provides':
'prefix': 'provides'
'body': 'provides(${1:${2:formats="$3"}});$0'
'radioButton':
'prefix': 'radioButton'
'body': 'radioButton(${1:${2:appendToLabel="$3"}${4:, errorElement="$5"}${6:, objectName="$7"}${8:, property="$9"}${10:, tagValue="$11"}${12:, label="$13"}${14:, labelPlacement="$15"}${16:, prepend="$17"}${18:, append="$19"}${20:, prependToLabel="$21"}});$0'
'radioButtonTag':
'prefix': 'radioButtonTag'
'body': 'radioButtonTag(${1:${2:labelPlacement="$3"}${4:, prepend="$5"}${6:, append="$7"}${8:, prependToLabel="$9"}${10:, appendToLabel="$11"}${12:, label="$13"}${14:, checked="$15"}${16:, value="$17"}${18:, name="$19"}});$0'
'redirectTo':
'prefix': 'redirectTo'
'body': 'redirectTo(${1:${2:back="$3"}${4:, addToken="$5"}${6:, port="$7"}${8:, statusCode="$9"}${10:, route="$11"}${12:, controller="$13"}${14:, action="$15"}${16:, key="$17"}${18:, params="$19"}${20:, anchor="$21"}${22:, onlyPath="$23"}${24:, host="$25"}${26:, protocol="$27"}});$0'
'reload':
'prefix': 'reload'
'body': 'reload();$0'
'removeColumn':
'prefix': 'removeColumn'
'body': 'removeColumn(table="$1"${2:${3:, columnName="$4"}${5:, referenceName="$5"}});$0'
'removeIndex':
'prefix': 'removeIndex'
'body': 'removeIndex(table="$1", indexName="$2");$0'
'removeRecord':
'prefix': 'removeRecord'
'body': 'removeRecord(table="$1", where="$2");$0'
'renameColumn':
'prefix': 'renameColumn'
'body': 'renameColumn(table="$1", columnName="$2", newColumnName="$3");$0'
'renameTable':
'prefix': 'renameTable'
'body': 't = renameTable(oldName="$1", newName="$2");$0'
'renderNothing':
'prefix': 'renderNothing'
'body': 'renderNothing();$0'
'renderPage':
'prefix': 'renderPage'
'body': 'renderPage(${1:${2:returnAs="$3"}${4:, action="$5"}${6:, controller="$7"}${8:, cache="$9"}${10:, layout="$11"}${12:, template="$13"}});$0'
'renderPartial':
'prefix': 'renderPartial'
'body': 'renderPartial(${1:${2:partial="$3"}${4:, cache="$5"}${6:, layout="$7"}${8:, returnAs="$9"}});$0'
'renderText':
'prefix': 'renderText'
'body': 'renderText(${1:${2:text="$3"}});$0'
'renderWith':
'prefix': 'renderWith'
'body': 'renderWith(${1:${2:data="$3"}${4:, controller="$5"}${6:, action="$7"}${8:, template="$9"}${10:, layout="$11"}${12:, cache="$13"}${14:, returnAs="$15"}${16:, hideDebugInformation="$17"}});$0'
'resetCycle':
'prefix': 'resetCycle'
'body': 'resetCycle(${1:${2:name="$3"}});$0'
'response':
'prefix': 'response'
'body': 'response();$0'
'save':
'prefix': 'save'
'body': 'save(${1:${2:parameterize="$3"}${4:, defaults="$5"}${6:, validate="$7"}});$0'
'secondSelectTag':
'prefix': 'secondSelectTag'
'body': 'secondSelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, includeBlank="$7"}${8:, label="$9"}${10:, labelPlacement="$11"}${12:, prepend="$13"}${14:, append="$15"}${16:, prependToLabel="$17"}${18:, appendToLabel="$19"}});$0'
'select':
'prefix': 'select'
'body': 'select(${1:${2:objectName="$3"}${4:, property="$5"}${6:, options="$7"}${8:, includeBlank="$9"}${10:, valueField="$11"}${12:, textField="$13"}${14:, label="$15"}${16:, labelPlacement="$17"}${18:, prepend="$19"}${20:, append="$21"}${22:, prependToLabel="$23"}${24:, appendToLabel="$25"}${26:, errorElement="$27"}});$0'
'selectTag':
'prefix': 'selectTag'
'body': 'selectTag(${1:${2:name="$3"}${4:, options="$5"}${6:, selected="$7"}${8:, includeBlank="$9"}${10:, multiple="$11"}${12:, valueField="$13"}${14:, textField="$15"}${16:, label="$17"}${18:, labelPlacement="$19"}${20:, prepend="$21"}${22:, append="$23"}${24:, prependToLabel="$25"}${26:, appendToLabel="$27"}});$0'
'sendEmail':
'prefix': 'sendEmail'
'body': 'sendEmail(${1:${2:templates="$3"}${4:, from="$5"}${6:, to="$7"}${8:, subject="$9"}${10:, layouts="$11"}${12:, detectMultipart="$13"}});$0'
'sendFile':
'prefix': 'sendFile'
'body': 'sendFile(${1:${2:file="$3"}${4:, name="$5"}${6:, type="$7"}${8:, disposition="$9"}});$0'
'set':
'prefix': 'set'
'body': 'set();$0'
'setProperties':
'prefix': 'setProperties'
'body': 'setProperties(${1:${2:properties="$3"}});$0'
'simpleFormat':
'prefix': 'simpleFormat'
'body': 'simpleFormat(${1:${2:text="$3"}${4:, wrap="$5"}});$0'
'singularize':
'prefix': 'singularize'
'body': 'singularize(${1:${2:word="$3"}});$0'
'startFormTag':
'prefix': 'startFormTag'
'body': 'startFormTag(${1:${2:method="$3"}${4:, multipart="$5"}${6:, spamProtection="$7"}${8:, route="$9"}${10:, controller="$11"}${12:, action="$13"}${14:, key="$15"}${16:, params="$17"}${18:, anchor="$19"}${20:, onlyPath="$21"}${22:, host="$23"}${24:, protocol="$25"}${26:, port="$27"}});$0'
'string':
'prefix': 'string'
'body': 't.string(${1:${2:columnNames="$3"}${4:, limit="$5"}${6:${7:, default="$8"}${9:, null="$10"}}});$0'
'stripLinks':
'prefix': 'stripLinks'
'body': 'stripLinks(${1:${2:html="$3"}});$0'
'stripTags':
'prefix': 'stripTags'
'body': 'stripTags(${1:${2:html="$3"}});$0'
'styleSheetLinkTag':
'prefix': 'styleSheetLinkTag'
'body': 'styleSheetLinkTag(${1:${2:sources="$3"}${4:, type="$5"}${6:, media="$7"}});$0'
'submitTag':
'prefix': 'submitTag'
'body': 'submitTag(${1:${2:value="$3"}${4:, image="$5"}${6:, disable="$7"}});$0'
'sum':
'prefix': 'sum'
'body': 'sum(${1:${2:property="$3"}${4:, where="$5"}${6:, include="$7"}${8:, distinct="$9"}});$0'
'table':
'prefix': 'table'
'body': 'table(${1:${2:name="$3"}});$0'
'tableName':
'prefix': 'tableName'
'body': 'tableName();$0'
'text':
'prefix': 'text'
'body': 't.text(${1:${2:columnNames="$3"}${4:${5:, default="$6"}${7:, null="$8"}}});$0'
'textArea':
'prefix': 'textArea'
'body': 'textArea(${1:${2:objectName="$3"}${4:, property="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}${18:, errorElement="$19"}});$0'
'textAreaTag':
'prefix': 'textAreaTag'
'body': 'textAreaTag(${1:${2:name="$3"}${4:, content="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}});$0'
'textField':
'prefix': 'textField'
'body': 'textField(${1:${2:objectName="$3"}${4:, property="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}${18:, errorElement="$19"}});$0'
'textFieldTag':
'prefix': 'textFieldTag'
'body': 'textFieldTag(${1:${2:name="$3"}${4:, value="$5"}${6:, label="$7"}${8:, labelPlacement="$9"}${10:, prepend="$11"}${12:, append="$13"}${14:, prependToLabel="$15"}${16:, appendToLabel="$17"}});$0'
'time':
'prefix': 'time'
'body': 't.time(columnNames="$1"${2:${3:, default="$4"}${5:, null="$6"}});$0'
'timeAgoInWords':
'prefix': 'timeAgoInWords'
'body': 'timeAgoInWords(${1:${2:fromTime="$3"}${4:, includeSeconds="$5"}${6:, toTime="$7"}});$0'
'timeSelect':
'prefix': 'timeSelect'
'body': 'timeSelect(${1:${2:objectName="$3"}${4:, property="$5"}${6:, order="$7"}${8:, separator="$9"}${10:, minuteStep="$11"}${12:, includeBlank="$13"}${14:, label="$15"}${16:, labelPlacement="$17"}${18:, prepend="$19"}${20:, append="$21"}${22:, prependToLabel="$23"}${24:, appendToLabel="$25"}${26:, errorElement="$27"}});$0'
'timeSelectTags':
'prefix': 'timeSelectTags'
'body': 'timeSelectTags(${1:${2:name="$3"}${4:, selected="$5"}${6:, order="$7"}${8:, separator="$9"}${10:, minuteStep="$11"}${12:, includeBlank="$13"}${14:, label="$15"}${16:, labelPlacement="$17"}${18:, prepend="$19"}${20:, append="$21"}${22:, prependToLabel="$23"}${24:, appendToLabel="$25"}});$0'
'timestamp':
'prefix': 'timestamp'
'body': 't.timestamp(columnNames="$1"${2:${3:, default="$4"}${5:, null="$6"}});$0'
'timestamps':
'prefix': 'timestamps'
'body': 't.timestamps();$0'
'timeUntilInWords':
'prefix': 'timeUntilInWords'
'body': 'timeUntilInWords(${1:${2:fromTime="$3"}${4:, includeSeconds="$5"}${6:, toTime="$7"}});$0'
'titleize':
'prefix': 'titleize'
'body': 'titleize(${1:${2:word="$3"}});$0'
'toXHTML':
'prefix': 'toXHTML'
'body': 'toXHTML("");$0'
'truncate':
'prefix': 'truncate'
'body': 'truncate(${1:${2:text="$3"}${4:, length="$5"}${6:, truncateString="$7"}});$0'
'update':
'prefix': 'update'
'body': 'update(${1:${2:properties="$3"}${4:, parameterize="$5"}});$0'
'updateAll':
'prefix': 'updateAll'
'body': 'updateAll(${1:${2:where="$3"}${4:, include="$5"}${6:, properties="$7"}${8:, parameterize="$9"}${10:, instantiate="$11"}});$0'
'updateByKey':
'prefix': 'updateByKey'
'body': 'updateByKey(${1:${2:key="$3"}${4:, properties="$5"}});$0'
'updateOne':
'prefix': 'updateOne'
'body': 'updateOne(${1:${2:where="$3"}${4:, order="$5"}${6:, properties="$7"}});$0'
'updateProperties':
'prefix': 'updateProperties'
'body': 'updateProperties(${1:${2:property="$3"}${4:, validate="$5"}${6:, parameterize=true}${8:, transaction="$9"}${10:, callbacks=true}});$0'
'updateProperty':
'prefix': 'updateProperty'
'body': 'updateProperty(${1:${2:property="$3"}${4:, value="$5"}${6:, parameterize=true}${8:, transaction="$9"}${10:, callbacks=true}});$0'
'updateRecord':
'prefix': 'updateRecord'
'body': 'updateRecord(table="$1", where="$2"${4:, columnNames="$5"});$0'
'URLFor':
'prefix': 'URLFor'
'body': 'URLFor(${1:${2:port="$3"}${4:, host="$5"}${6:, protocol="$7"}${8:, route="$9"}${10:, controller="$11"}${12:, action="$13"}${14:, key="$15"}${16:, params="$17"}${18:, anchor="$19"}${20:, onlyPath="$21"}});$0'
'usesLayout':
'prefix': 'usesLayout'
'body': 'usesLayout(${1:${2:template="$3"}${4:, ajax="$5"}${6:, except="$7"}${8:, only="$9"}${10:, useDefault=true}});$0'
'valid':
'prefix': 'valid'
'body': 'valid();$0'
'validate':
'prefix': 'validate'
'body': 'validate(${1:${2:methods="$3"}${4:, if="$5"}${6:, unless="$7"}});$0'
'validateOnCreate':
'prefix': 'validateOnCreate'
'body': 'validateOnCreate(${1:${2:methods="$3"}${4:, if="$5"}${6:, unless="$7"}});$0'
'validateOnUpdate':
'prefix': 'validateOnUpdate'
'body': 'validateOnUpdate(${1:${2:methods="$3"}${4:, if="$5"}${6:, unless="$7"}});$0'
'validatesConfirmationOf':
'prefix': 'validatesConfirmationOf'
'body': 'validatesConfirmationOf(${1:${2:properties="$3"}${4:, message="$5"}${6:, when="$7"}${8:, if="$9"}${10:, unless="$11"}});$0'
'validatesExclusionOf':
'prefix': 'validatesExclusionOf'
'body': 'validatesExclusionOf(${1:${2:properties="$3"}${4:, list="$5"}${6:, message="$7"}${8:, when="$9"}${10:, allowBlank="$11"}${12:, if="$13"}${14:, unless="$15"}});$0'
'validatesFormatOf':
'prefix': 'validatesFormatOf'
'body': 'validatesFormatOf(${1:${2:properties="$3"}${4:, regEx="$5"}${6:, type="$7"}${8:, message="$9"}${10:, when="$11"}${12:, allowBlank="$13"}${14:, if="$15"}${16:, unless="$17"}});$0'
'validatesInclusionOf':
'prefix': 'validatesInclusionOf'
'body': 'validatesInclusionOf(${1:${2:properties="$3"}${4:, list="$5"}${6:, message="$7"}${8:, when="$9"}${10:, allowBlank="$11"}${12:, if="$13"}${14:, unless="$15"}});$0'
'validatesLengthOf':
'prefix': 'validatesLengthOf'
'body': 'validatesLengthOf(${1:${2:properties="$3"}${4:, message="$5"}${6:, when="$7"}${8:, allowBlank="$9"}${10:, exactly="$11"}${12:, maximum="$13"}${14:, minimum="$15"}${16:, within="$17"}${18:, if="$19"}${20:, unless="$21"}});$0'
'validatesNumericalityOf':
'prefix': 'validatesNumericalityOf'
'body': 'validatesNumericalityOf(${1:${2:properties="$3"}${4:, message="$5"}${6:, when="$7"}${8:, allowBlank="$9"}${10:, onlyInteger="$11"}${12:, if="$13"}${14:, unless="$15"}});$0'
'validatesPresenceOf':
'prefix': 'validatesPresenceOf'
'body': 'validatesPresenceOf(${1:${2:properties="$3"}${4:, message="$5"}${6:, when="$7"}${8:, if="$9"}${10:, unless="$11"}});$0'
'validatesUniquenessOf':
'prefix': 'validatesUniquenessOf'
'body': 'validatesUniquenessOf(${1:${2:properties="$3"}${4:, message="$5"}${6:, when="$7"}${8:, allowBlank="$9"}${10:, scope="$11"}${12:, if="$13"}${14:, unless="$15"}});$0'
'verifies':
'prefix': 'verifies'
'body': 'verifies(${1:${2:only="$3"}${4:, except="$5"}${6:, post="$7"}${8:, get="$9"}${10:, ajax="$11"}${12:, cookie="$13"}${14:, session="$15"}${16:, params="$17"}${18:, handler="$19"}});$0'
'wordTruncate':
'prefix': 'wordTruncate'
'body': 'wordTruncate(${1:${2:text="$3"}${4:, length="$5"}${6:, truncateString="$7"}});$0'
'yearSelectTag':
'prefix': 'yearSelectTag'
'body': 'yearSelectTag(${1:${2:name="$3"}${4:, selected="$5"}${6:, startYear="$7"}${8:, endYear="$9"}${10:, includeBlank="$11"}${12:, label="$13"}${14:, labelPlacement="$15"}${16:, prepend="$17"}${18:, append="$19"}${20:, prependToLabel="$21"}${22:, appendToLabel="$23"}});$0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment