Skip to content

Instantly share code, notes, and snippets.

@chapmandu
Created April 12, 2017 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chapmandu/96e5da2c35f67addbbd0abefb99ce9c2 to your computer and use it in GitHub Desktop.
Save chapmandu/96e5da2c35f67addbbd0abefb99ce9c2 to your computer and use it in GitHub Desktop.
cfwheels 2.x vscode snippets
{
/*
// Place your snippets for CFML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"accessibleProperties": {
"prefix": "accessibleProperties",
"body": ["accessibleProperties();"],
"description": "Use this method to specify which properties can be set through mass assignment."
},
"accessibleProperties (long)": {
"prefix": "accessibleProperties long",
"body": ["accessibleProperties(properties=\"$1\");"],
"description": "Use this method to specify which properties can be set through mass assignment."
},
"addError": {
"prefix": "addError",
"body": ["addError(property=\"$1\", message=\"$2\");"],
"description": "Adds an error on a specific property."
},
"addError (long)": {
"prefix": "addError long",
"body": ["addError(property=\"$1\", message=\"$2\", name=\"$3\");"],
"description": "Adds an error on a specific property."
},
"addErrorToBase": {
"prefix": "addErrorToBase",
"body": ["addErrorToBase(message=\"$1\");"],
"description": "Adds an error on a specific property."
},
"addErrorToBase (long)": {
"prefix": "addErrorToBase long",
"body": ["addErrorToBase(message=\"$1\", name=\"$2\");"],
"description": "Adds an error on a specific property."
},
"addFormat": {
"prefix": "addFormat",
"body": ["addFormat(extension=\"$1\", mimeType=\"$2\");"],
"description": "Adds a new MIME format to your Wheels application for use with responding to multiple formats."
},
"addFormat (long)": {
"prefix": "addFormat long",
"body": ["addFormat(extension=\"$1\", mimeType=\"$2\");"],
"description": "Adds a new MIME format to your Wheels application for use with responding to multiple formats."
},
"afterCreate": {
"prefix": "afterCreate",
"body": ["afterCreate();"],
"description": "Registers method(s) that should be called after a new object is created."
},
"afterCreate (long)": {
"prefix": "afterCreate long",
"body": ["afterCreate(methods=\"$1\");"],
"description": "Registers method(s) that should be called after a new object is created."
},
"afterDelete": {
"prefix": "afterDelete",
"body": ["afterDelete();"],
"description": "Registers method(s) that should be called after an object is deleted."
},
"afterDelete (long)": {
"prefix": "afterDelete long",
"body": ["afterDelete(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an object is deleted."
},
"afterFind": {
"prefix": "afterFind",
"body": ["afterFind();"],
"description": "Registers method(s) that should be called after an existing object has been initialized (which is usually done with the findByKey or findOne method)."
},
"afterFind (long)": {
"prefix": "afterFind long",
"body": ["afterFind(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an existing object has been initialized (which is usually done with the findByKey or findOne method)."
},
"afterInitialization": {
"prefix": "afterInitialization",
"body": ["afterInitialization();"],
"description": "Registers method(s) that should be called after an object has been initialized."
},
"afterInitialization (long)": {
"prefix": "afterInitialization long",
"body": ["afterInitialization(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an object has been initialized."
},
"afterNew": {
"prefix": "afterNew",
"body": ["afterNew();"],
"description": "Registers method(s) that should be called after a new object has been initialized (which is usually done with the new method)."
},
"afterNew (long)": {
"prefix": "afterNew long",
"body": ["afterNew(methods=\"$1\");"],
"description": "Registers method(s) that should be called after a new object has been initialized (which is usually done with the new method)."
},
"afterSave": {
"prefix": "afterSave",
"body": ["afterSave();"],
"description": "Registers method(s) that should be called after an object is saved."
},
"afterSave (long)": {
"prefix": "afterSave long",
"body": ["afterSave(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an object is saved."
},
"afterUpdate": {
"prefix": "afterUpdate",
"body": ["afterUpdate();"],
"description": "Registers method(s) that should be called after an existing object is updated."
},
"afterUpdate (long)": {
"prefix": "afterUpdate long",
"body": ["afterUpdate(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an existing object is updated."
},
"afterValidation": {
"prefix": "afterValidation",
"body": ["afterValidation();"],
"description": "Registers method(s) that should be called after an object is validated."
},
"afterValidation (long)": {
"prefix": "afterValidation long",
"body": ["afterValidation(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an object is validated."
},
"afterValidationOnCreate": {
"prefix": "afterValidationOnCreate",
"body": ["afterValidationOnCreate();"],
"description": "Registers method(s) that should be called after a new object is validated."
},
"afterValidationOnCreate (long)": {
"prefix": "afterValidationOnCreate long",
"body": ["afterValidationOnCreate(methods=\"$1\");"],
"description": "Registers method(s) that should be called after a new object is validated."
},
"afterValidationOnUpdate": {
"prefix": "afterValidationOnUpdate",
"body": ["afterValidationOnUpdate();"],
"description": "Registers method(s) that should be called after an existing object is validated."
},
"afterValidationOnUpdate (long)": {
"prefix": "afterValidationOnUpdate long",
"body": ["afterValidationOnUpdate(methods=\"$1\");"],
"description": "Registers method(s) that should be called after an existing object is validated."
},
"allChanges": {
"prefix": "allChanges",
"body": ["allChanges();"],
"description": "Returns a struct detailing all changes that have been made on the object but not yet saved to the database."
},
"allChanges (long)": {
"prefix": "allChanges long",
"body": ["allChanges();"],
"description": "Returns a struct detailing all changes that have been made on the object but not yet saved to the database."
},
"allErrors": {
"prefix": "allErrors",
"body": ["allErrors();"],
"description": "Returns an array of all the errors on the object."
},
"allErrors (long)": {
"prefix": "allErrors long",
"body": ["allErrors();"],
"description": "Returns an array of all the errors on the object."
},
"authenticityTokenField": {
"prefix": "authenticityTokenField",
"body": ["authenticityTokenField();"],
"description": "Returns a hidden form field containing a new authenticity token."
},
"authenticityTokenField (long)": {
"prefix": "authenticityTokenField long",
"body": ["authenticityTokenField();"],
"description": "Returns a hidden form field containing a new authenticity token."
},
"autoLink": {
"prefix": "autoLink",
"body": ["autoLink(text=\"$1\");"],
"description": "Turns all URLs and email addresses into hyperlinks."
},
"autoLink (long)": {
"prefix": "autoLink long",
"body": ["autoLink(text=\"$1\", link=\"$2\", relative=$3);"],
"description": "Turns all URLs and email addresses into hyperlinks."
},
"automaticValidations": {
"prefix": "automaticValidations",
"body": ["automaticValidations(value=$1);"],
"description": "Whether or not to enable default validations for this model."
},
"automaticValidations (long)": {
"prefix": "automaticValidations long",
"body": ["automaticValidations(value=$1);"],
"description": "Whether or not to enable default validations for this model."
},
"average": {
"prefix": "average",
"body": ["average(property=\"$1\");"],
"description": "Calculates the average value for a given property. Uses the SQL function AVG. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"average (long)": {
"prefix": "average long",
"body": ["average(property=\"$1\", where=\"$2\", include=\"$3\", distinct=$4, parameterize=$5, ifNull=$6, includeSoftDeletes=$7, group=\"$8\");"],
"description": "Calculates the average value for a given property. Uses the SQL function AVG. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"beforeCreate": {
"prefix": "beforeCreate",
"body": ["beforeCreate();"],
"description": "Registers method(s) that should be called before a new object is created."
},
"beforeCreate (long)": {
"prefix": "beforeCreate long",
"body": ["beforeCreate(methods=\"$1\");"],
"description": "Registers method(s) that should be called before a new object is created."
},
"beforeDelete": {
"prefix": "beforeDelete",
"body": ["beforeDelete();"],
"description": "Registers method(s) that should be called before an object is deleted."
},
"beforeDelete (long)": {
"prefix": "beforeDelete long",
"body": ["beforeDelete(methods=\"$1\");"],
"description": "Registers method(s) that should be called before an object is deleted."
},
"beforeSave": {
"prefix": "beforeSave",
"body": ["beforeSave();"],
"description": "Registers method(s) that should be called before an object is saved."
},
"beforeSave (long)": {
"prefix": "beforeSave long",
"body": ["beforeSave(methods=\"$1\");"],
"description": "Registers method(s) that should be called before an object is saved."
},
"beforeUpdate": {
"prefix": "beforeUpdate",
"body": ["beforeUpdate();"],
"description": "Registers method(s) that should be called before an existing object is updated."
},
"beforeUpdate (long)": {
"prefix": "beforeUpdate long",
"body": ["beforeUpdate(methods=\"$1\");"],
"description": "Registers method(s) that should be called before an existing object is updated."
},
"beforeValidation": {
"prefix": "beforeValidation",
"body": ["beforeValidation();"],
"description": "Registers method(s) that should be called before an object is validated."
},
"beforeValidation (long)": {
"prefix": "beforeValidation long",
"body": ["beforeValidation(methods=\"$1\");"],
"description": "Registers method(s) that should be called before an object is validated."
},
"beforeValidationOnCreate": {
"prefix": "beforeValidationOnCreate",
"body": ["beforeValidationOnCreate();"],
"description": "Registers method(s) that should be called before a new object is validated."
},
"beforeValidationOnCreate (long)": {
"prefix": "beforeValidationOnCreate long",
"body": ["beforeValidationOnCreate(methods=\"$1\");"],
"description": "Registers method(s) that should be called before a new object is validated."
},
"beforeValidationOnUpdate": {
"prefix": "beforeValidationOnUpdate",
"body": ["beforeValidationOnUpdate();"],
"description": "Registers method(s) that should be called before an existing object is validated."
},
"beforeValidationOnUpdate (long)": {
"prefix": "beforeValidationOnUpdate long",
"body": ["beforeValidationOnUpdate(methods=\"$1\");"],
"description": "Registers method(s) that should be called before an existing object is validated."
},
"belongsTo": {
"prefix": "belongsTo",
"body": ["belongsTo(name=\"$1\");"],
"description": "Sets up a belongsTo association between this model and the specified one.\nUse this association when this model contains a foreign key referencing another model."
},
"belongsTo (long)": {
"prefix": "belongsTo long",
"body": ["belongsTo(name=\"$1\", modelName=\"$2\", foreignKey=\"$3\", joinKey=\"$4\", joinType=\"$5\");"],
"description": "Sets up a belongsTo association between this model and the specified one.\nUse this association when this model contains a foreign key referencing another model."
},
"buttonTag": {
"prefix": "buttonTag",
"body": ["buttonTag();"],
"description": "Builds and returns a string containing a button form control."
},
"buttonTag (long)": {
"prefix": "buttonTag long",
"body": ["buttonTag(content=\"$1\", type=\"$2\", value=\"$3\", image=\"$4\", prepend=\"$5\", append=\"$6\");"],
"description": "Builds and returns a string containing a button form control."
},
"buttonTo": {
"prefix": "buttonTo",
"body": ["buttonTo();"],
"description": "Creates a form containing a single button that submits to the URL. The URL is built the same way as the linkTo function."
},
"buttonTo (long)": {
"prefix": "buttonTo long",
"body": ["buttonTo(text=\"$1\", image=\"$2\", route=\"$3\", controller=\"$4\", action=\"$5\", key=$6, params=\"$7\", anchor=\"$8\", onlyPath=$9, host=\"$10\", protocol=\"$11\", port=$12);"],
"description": "Creates a form containing a single button that submits to the URL. The URL is built the same way as the linkTo function."
},
"caches": {
"prefix": "caches",
"body": ["caches();"],
"description": "Tells CFWheels to cache one or more actions."
},
"caches (long)": {
"prefix": "caches long",
"body": ["caches(action=\"$1\", time=$2, static=$3, appendToKey=\"$4\");"],
"description": "Tells CFWheels to cache one or more actions."
},
"capitalize": {
"prefix": "capitalize",
"body": ["capitalize(text=\"$1\");"],
"description": "Capitalizes all words in the text to create a nicer looking title."
},
"capitalize (long)": {
"prefix": "capitalize long",
"body": ["capitalize(text=\"$1\");"],
"description": "Capitalizes all words in the text to create a nicer looking title."
},
"changedFrom": {
"prefix": "changedFrom",
"body": ["changedFrom(property=\"$1\");"],
"description": "Returns the previous value of a property that has changed. Returns an empty string if no previous value exists. Wheels will keep a note of the previous property value until the object is saved to the database."
},
"changedFrom (long)": {
"prefix": "changedFrom long",
"body": ["changedFrom(property=\"$1\");"],
"description": "Returns the previous value of a property that has changed. Returns an empty string if no previous value exists. Wheels will keep a note of the previous property value until the object is saved to the database."
},
"changedProperties": {
"prefix": "changedProperties",
"body": ["changedProperties();"],
"description": "Returns a list of the object properties that have been changed but not yet saved to the database."
},
"changedProperties (long)": {
"prefix": "changedProperties long",
"body": ["changedProperties();"],
"description": "Returns a list of the object properties that have been changed but not yet saved to the database."
},
"checkBox": {
"prefix": "checkBox",
"body": ["checkBox(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a check box form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"checkBox (long)": {
"prefix": "checkBox long",
"body": ["checkBox(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", checkedValue=\"$5\", uncheckedValue=\"$6\", label=\"$7\", labelPlacement=\"$8\", prepend=\"$9\", append=\"$10\", prependToLabel=\"$11\", appendToLabel=\"$12\", errorElement=\"$13\", errorClass=\"$14\");"],
"description": "Builds and returns a string containing a check box form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"checkBoxTag": {
"prefix": "checkBoxTag",
"body": ["checkBoxTag(name=\"$1\");"],
"description": "Builds and returns a string containing a check box form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"checkBoxTag (long)": {
"prefix": "checkBoxTag long",
"body": ["checkBoxTag(name=\"$1\", checked=$2, value=\"$3\", uncheckedValue=\"$4\", label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\");"],
"description": "Builds and returns a string containing a check box form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"clearChangeInformation": {
"prefix": "clearChangeInformation",
"body": ["clearChangeInformation();"],
"description": "Clears all internal knowledge of the current state of the object."
},
"clearChangeInformation (long)": {
"prefix": "clearChangeInformation long",
"body": ["clearChangeInformation(property=\"$1\");"],
"description": "Clears all internal knowledge of the current state of the object."
},
"clearErrors": {
"prefix": "clearErrors",
"body": ["clearErrors();"],
"description": "Clears out all errors set on the object or only the ones set for a specific property or name."
},
"clearErrors (long)": {
"prefix": "clearErrors long",
"body": ["clearErrors(property=\"$1\", name=\"$2\");"],
"description": "Clears out all errors set on the object or only the ones set for a specific property or name."
},
"collection": {
"prefix": "collection",
"body": ["collection();"],
"description": ""
},
"collection (long)": {
"prefix": "collection long",
"body": ["collection();"],
"description": ""
},
"columnDataForProperty": {
"prefix": "columnDataForProperty",
"body": ["columnDataForProperty(property=\"$1\");"],
"description": "Returns a struct with data for the named property.."
},
"columnDataForProperty (long)": {
"prefix": "columnDataForProperty long",
"body": ["columnDataForProperty(property=\"$1\");"],
"description": "Returns a struct with data for the named property.."
},
"columnForProperty": {
"prefix": "columnForProperty",
"body": ["columnForProperty(property=\"$1\");"],
"description": "Returns the column name mapped for the named model property."
},
"columnForProperty (long)": {
"prefix": "columnForProperty long",
"body": ["columnForProperty(property=\"$1\");"],
"description": "Returns the column name mapped for the named model property."
},
"columnNames": {
"prefix": "columnNames",
"body": ["columnNames();"],
"description": "Returns a list of column names in the table mapped to this model. The list is ordered according to the columns' ordinal positions in the database table."
},
"columnNames (long)": {
"prefix": "columnNames long",
"body": ["columnNames();"],
"description": "Returns a list of column names in the table mapped to this model. The list is ordered according to the columns' ordinal positions in the database table."
},
"columns": {
"prefix": "columns",
"body": ["columns();"],
"description": "Returns an array of columns names for the table associated with this class. Does not include calculated properties that will be generated by the Wheels ORM."
},
"columns (long)": {
"prefix": "columns long",
"body": ["columns();"],
"description": "Returns an array of columns names for the table associated with this class. Does not include calculated properties that will be generated by the Wheels ORM."
},
"compareTo": {
"prefix": "compareTo",
"body": ["compareTo(object=$1);"],
"description": "Pass in another Wheels model object to see if the two objects are the same."
},
"compareTo (long)": {
"prefix": "compareTo long",
"body": ["compareTo(object=$1);"],
"description": "Pass in another Wheels model object to see if the two objects are the same."
},
"constraints": {
"prefix": "constraints",
"body": ["constraints();"],
"description": "Set variable patterns to use for matching."
},
"constraints (long)": {
"prefix": "constraints long",
"body": ["constraints();"],
"description": "Set variable patterns to use for matching."
},
"contentFor": {
"prefix": "contentFor",
"body": ["contentFor();"],
"description": "Used to store a section's output for rendering within a layout. This content store acts as a stack, so you can store multiple pieces of content for a given section."
},
"contentFor (long)": {
"prefix": "contentFor long",
"body": ["contentFor(position=$1, overwrite=$2);"],
"description": "Used to store a section's output for rendering within a layout. This content store acts as a stack, so you can store multiple pieces of content for a given section."
},
"contentForLayout": {
"prefix": "contentForLayout",
"body": ["contentForLayout();"],
"description": "Includes content for the body section, which equates to the output generated by the view template run by the request."
},
"contentForLayout (long)": {
"prefix": "contentForLayout long",
"body": ["contentForLayout();"],
"description": "Includes content for the body section, which equates to the output generated by the view template run by the request."
},
"controller": {
"prefix": "controller",
"body": ["controller(name=\"$1\");"],
"description": "Creates and returns a controller object with your own custom name and params. Used primarily for testing purposes."
},
"controller (long)": {
"prefix": "controller long",
"body": ["controller(name=\"$1\", params=$2);"],
"description": "Creates and returns a controller object with your own custom name and params. Used primarily for testing purposes."
},
"count": {
"prefix": "count",
"body": ["count();"],
"description": "Returns the number of rows that match the arguments (or all rows if no arguments are passed in). Uses the SQL function COUNT. If no records can be found to perform the calculation on, 0 is returned."
},
"count (long)": {
"prefix": "count long",
"body": ["count(where=\"$1\", include=\"$2\", parameterize=$3, includeSoftDeletes=$4, group=\"$5\");"],
"description": "Returns the number of rows that match the arguments (or all rows if no arguments are passed in). Uses the SQL function COUNT. If no records can be found to perform the calculation on, 0 is returned."
},
"create": {
"prefix": "create",
"body": ["create();"],
"description": "Creates a new object, saves it to the database (if the validation permits it), and returns it.\nIf the validation fails, the unsaved object (with errors added to it) is still returned.\nProperty names and values can be passed in either using named arguments or as a struct to the properties argument."
},
"create (long)": {
"prefix": "create long",
"body": ["create(properties=$1, parameterize=$2, reload=$3, validate=$4, transaction=\"$5\", callbacks=$6);"],
"description": "Creates a new object, saves it to the database (if the validation permits it), and returns it.\nIf the validation fails, the unsaved object (with errors added to it) is still returned.\nProperty names and values can be passed in either using named arguments or as a struct to the properties argument."
},
"createMigration": {
"prefix": "createMigration",
"body": ["createMigration(migrationName=\"$1\");"],
"description": "Creates a migration file. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"createMigration (long)": {
"prefix": "createMigration long",
"body": ["createMigration(migrationName=\"$1\", templateName=\"$2\", migrationPrefix=\"$3\");"],
"description": "Creates a migration file. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"csrfMetaTags": {
"prefix": "csrfMetaTags",
"body": ["csrfMetaTags();"],
"description": "Include this in your layouts' <head> sections to include meta tags containing the authenticity token for use by JavaScript AJAX requests needing to POST data to your application."
},
"csrfMetaTags (long)": {
"prefix": "csrfMetaTags long",
"body": ["csrfMetaTags();"],
"description": "Include this in your layouts' <head> sections to include meta tags containing the authenticity token for use by JavaScript AJAX requests needing to POST data to your application."
},
"cycle": {
"prefix": "cycle",
"body": ["cycle(values=\"$1\");"],
"description": "Cycles through list values every time it is called."
},
"cycle (long)": {
"prefix": "cycle long",
"body": ["cycle(values=\"$1\", name=\"$2\");"],
"description": "Cycles through list values every time it is called."
},
"dataSource": {
"prefix": "dataSource",
"body": ["dataSource(datasource=\"$1\");"],
"description": "Use this method to override the data source connection information for this model."
},
"dataSource (long)": {
"prefix": "dataSource long",
"body": ["dataSource(datasource=\"$1\", username=\"$2\", password=\"$3\");"],
"description": "Use this method to override the data source connection information for this model."
},
"dateSelect": {
"prefix": "dateSelect",
"body": ["dateSelect();"],
"description": "Builds and returns a string containing three select form controls for month, day, and year based on the supplied objectName and property."
},
"dateSelect (long)": {
"prefix": "dateSelect long",
"body": ["dateSelect(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", order=\"$5\", separator=\"$6\", startYear=$7, endYear=$8, monthDisplay=\"$9\", monthNames=\"$10\", monthAbbreviations=\"$11\", includeBlank=$12, label=\"$13\", labelPlacement=\"$14\", prepend=\"$15\", append=\"$16\", prependToLabel=\"$17\", appendToLabel=\"$18\", errorElement=\"$19\", errorClass=\"$20\", combine=$21);"],
"description": "Builds and returns a string containing three select form controls for month, day, and year based on the supplied objectName and property."
},
"dateSelectTags": {
"prefix": "dateSelectTags",
"body": ["dateSelectTags(name=\"$1\");"],
"description": "Builds and returns a string containing three select form controls (month, day, and year) based on a name and value."
},
"dateSelectTags (long)": {
"prefix": "dateSelectTags long",
"body": ["dateSelectTags(name=\"$1\", selected=\"$2\", order=\"$3\", separator=\"$4\", startYear=$5, endYear=$6, monthDisplay=\"$7\", monthNames=\"$8\", monthAbbreviations=\"$9\", includeBlank=$10, label=\"$11\", labelPlacement=\"$12\", prepend=\"$13\", append=\"$14\", prependToLabel=\"$15\", appendToLabel=\"$16\", combine=$17, $now=$18);"],
"description": "Builds and returns a string containing three select form controls (month, day, and year) based on a name and value."
},
"dateTimeSelect": {
"prefix": "dateTimeSelect",
"body": ["dateTimeSelect(objectName=\"$1\", property=\"$2\");"],
"description": "Builds and returns a string containing six select form controls (three for date selection and the remaining three for time selection) based on the supplied objectName and property."
},
"dateTimeSelect (long)": {
"prefix": "dateTimeSelect long",
"body": ["dateTimeSelect(objectName=\"$1\", property=\"$2\", association=\"$3\", position=\"$4\", dateOrder=\"$5\", dateSeparator=\"$6\", startYear=$7, endYear=$8, monthDisplay=\"$9\", monthNames=\"$10\", monthAbbreviations=\"$11\", timeOrder=\"$12\", timeSeparator=\"$13\", minuteStep=$14, secondStep=$15, separator=\"$16\", includeBlank=$17, label=\"$18\", labelPlacement=\"$19\", prepend=\"$20\", append=\"$21\", prependToLabel=\"$22\", appendToLabel=\"$23\", errorElement=\"$24\", errorClass=\"$25\", combine=$26, twelveHour=$27);"],
"description": "Builds and returns a string containing six select form controls (three for date selection and the remaining three for time selection) based on the supplied objectName and property."
},
"dateTimeSelectTags": {
"prefix": "dateTimeSelectTags",
"body": ["dateTimeSelectTags(name=\"$1\");"],
"description": "Builds and returns a string containing six select form controls (three for date selection and the remaining three for time selection) based on a name."
},
"dateTimeSelectTags (long)": {
"prefix": "dateTimeSelectTags long",
"body": ["dateTimeSelectTags(name=\"$1\", selected=\"$2\", dateOrder=\"$3\", dateSeparator=\"$4\", startYear=$5, endYear=$6, monthDisplay=\"$7\", monthNames=\"$8\", monthAbbreviations=\"$9\", timeOrder=\"$10\", timeSeparator=\"$11\", minuteStep=$12, secondStep=$13, separator=\"$14\", includeBlank=$15, label=\"$16\", labelPlacement=\"$17\", prepend=\"$18\", append=\"$19\", prependToLabel=\"$20\", appendToLabel=\"$21\", combine=$22, twelveHour=$23);"],
"description": "Builds and returns a string containing six select form controls (three for date selection and the remaining three for time selection) based on a name."
},
"daySelectTag": {
"prefix": "daySelectTag",
"body": ["daySelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing a select form control for the days of the week based on the supplied name."
},
"daySelectTag (long)": {
"prefix": "daySelectTag long",
"body": ["daySelectTag(name=\"$1\", selected=\"$2\", includeBlank=$3, label=\"$4\", labelPlacement=\"$5\", prepend=\"$6\", append=\"$7\", prependToLabel=\"$8\", appendToLabel=\"$9\", $now=$10);"],
"description": "Builds and returns a string containing a select form control for the days of the week based on the supplied name."
},
"delete": {
"prefix": "delete",
"body": ["delete();"],
"description": "Deletes the object, which means the row is deleted from the database (unless prevented by a beforeDelete callback). Returns true on successful deletion of the row, false otherwise."
},
"delete (long)": {
"prefix": "delete long",
"body": ["delete(parameterize=$1, transaction=\"$2\", callbacks=$3, includeSoftDeletes=$4, softDelete=$5);"],
"description": "Deletes the object, which means the row is deleted from the database (unless prevented by a beforeDelete callback). Returns true on successful deletion of the row, false otherwise."
},
"deleteAll": {
"prefix": "deleteAll",
"body": ["deleteAll();"],
"description": "Deletes all records that match the where argument. By default, objects will not be instantiated and therefore callbacks and validations are not invoked. You can change this behavior by passing in instantiate=true. Returns the number of records that were deleted."
},
"deleteAll (long)": {
"prefix": "deleteAll long",
"body": ["deleteAll(where=\"$1\", include=\"$2\", reload=$3, parameterize=$4, instantiate=$5, transaction=\"$6\", callbacks=$7, includeSoftDeletes=$8, softDelete=$9);"],
"description": "Deletes all records that match the where argument. By default, objects will not be instantiated and therefore callbacks and validations are not invoked. You can change this behavior by passing in instantiate=true. Returns the number of records that were deleted."
},
"deleteByKey": {
"prefix": "deleteByKey",
"body": ["deleteByKey(key=$1);"],
"description": "Finds the record with the supplied key and deletes it. Returns true on successful deletion of the row, false otherwise."
},
"deleteByKey (long)": {
"prefix": "deleteByKey long",
"body": ["deleteByKey(key=$1, reload=$2, transaction=\"$3\", callbacks=$4, includeSoftDeletes=$5, softDelete=$6);"],
"description": "Finds the record with the supplied key and deletes it. Returns true on successful deletion of the row, false otherwise."
},
"deleteOne": {
"prefix": "deleteOne",
"body": ["deleteOne();"],
"description": "Gets an object based on conditions and deletes it."
},
"deleteOne (long)": {
"prefix": "deleteOne long",
"body": ["deleteOne(where=\"$1\", order=\"$2\", reload=$3, transaction=\"$4\", callbacks=$5, includeSoftDeletes=$6, softDelete=$7);"],
"description": "Gets an object based on conditions and deletes it."
},
"deobfuscateParam": {
"prefix": "deobfuscateParam",
"body": ["deobfuscateParam(param=\"$1\");"],
"description": "Deobfuscates a value."
},
"deobfuscateParam (long)": {
"prefix": "deobfuscateParam long",
"body": ["deobfuscateParam(param=\"$1\");"],
"description": "Deobfuscates a value."
},
"distanceOfTimeInWords": {
"prefix": "distanceOfTimeInWords",
"body": ["distanceOfTimeInWords(fromTime=$1, toTime=$2);"],
"description": "Pass in two dates to this method, and it will return a string describing the difference between them."
},
"distanceOfTimeInWords (long)": {
"prefix": "distanceOfTimeInWords long",
"body": ["distanceOfTimeInWords(fromTime=$1, toTime=$2, includeSeconds=$3);"],
"description": "Pass in two dates to this method, and it will return a string describing the difference between them."
},
"drawRoutes": {
"prefix": "drawRoutes",
"body": ["drawRoutes();"],
"description": "Use to configure your application's routes."
},
"drawRoutes (long)": {
"prefix": "drawRoutes long",
"body": ["drawRoutes(restful=$1, methods=$2);"],
"description": "Use to configure your application's routes."
},
"end": {
"prefix": "end",
"body": ["end();"],
"description": "Call this to end your route configuration."
},
"end (long)": {
"prefix": "end long",
"body": ["end();"],
"description": "Call this to end your route configuration."
},
"endFormTag": {
"prefix": "endFormTag",
"body": ["endFormTag();"],
"description": "Builds and returns a string containing the closing form tag."
},
"endFormTag (long)": {
"prefix": "endFormTag long",
"body": ["endFormTag(prepend=\"$1\", append=\"$2\");"],
"description": "Builds and returns a string containing the closing form tag."
},
"errorCount": {
"prefix": "errorCount",
"body": ["errorCount();"],
"description": "Returns the number of errors this object has associated with it. Specify property or name if you wish to count only specific errors."
},
"errorCount (long)": {
"prefix": "errorCount long",
"body": ["errorCount(property=\"$1\", name=\"$2\");"],
"description": "Returns the number of errors this object has associated with it. Specify property or name if you wish to count only specific errors."
},
"errorMessageOn": {
"prefix": "errorMessageOn",
"body": ["errorMessageOn(objectName=\"$1\", property=\"$2\");"],
"description": "Returns the error message, if one exists, on the object's property. If multiple error messages exist, the first one is returned."
},
"errorMessageOn (long)": {
"prefix": "errorMessageOn long",
"body": ["errorMessageOn(objectName=\"$1\", property=\"$2\", prependText=\"$3\", appendText=\"$4\", wrapperElement=\"$5\", class=\"$6\");"],
"description": "Returns the error message, if one exists, on the object's property. If multiple error messages exist, the first one is returned."
},
"errorMessagesFor": {
"prefix": "errorMessagesFor",
"body": ["errorMessagesFor(objectName=\"$1\");"],
"description": "Builds and returns a list (ul tag with a default class of errorMessages) containing all the error messages for all the properties of the object (if any). Returns an empty string otherwise."
},
"errorMessagesFor (long)": {
"prefix": "errorMessagesFor long",
"body": ["errorMessagesFor(objectName=\"$1\", class=\"$2\", showDuplicates=$3);"],
"description": "Builds and returns a list (ul tag with a default class of errorMessages) containing all the error messages for all the properties of the object (if any). Returns an empty string otherwise."
},
"errorsOn": {
"prefix": "errorsOn",
"body": ["errorsOn(property=\"$1\");"],
"description": "Returns an array of all errors associated with the supplied property (and error name if passed in)."
},
"errorsOn (long)": {
"prefix": "errorsOn long",
"body": ["errorsOn(property=\"$1\", name=\"$2\");"],
"description": "Returns an array of all errors associated with the supplied property (and error name if passed in)."
},
"errorsOnBase": {
"prefix": "errorsOnBase",
"body": ["errorsOnBase();"],
"description": "Returns an array of all errors associated with the object as a whole (not related to any specific property)."
},
"errorsOnBase (long)": {
"prefix": "errorsOnBase long",
"body": ["errorsOnBase(name=\"$1\");"],
"description": "Returns an array of all errors associated with the object as a whole (not related to any specific property)."
},
"excerpt": {
"prefix": "excerpt",
"body": ["excerpt(text=\"$1\", phrase=\"$2\");"],
"description": "Extracts an excerpt from text that matches the first instance of a given phrase."
},
"excerpt (long)": {
"prefix": "excerpt long",
"body": ["excerpt(text=\"$1\", phrase=\"$2\", radius=$3, excerptString=\"$4\");"],
"description": "Extracts an excerpt from text that matches the first instance of a given phrase."
},
"exists": {
"prefix": "exists",
"body": ["exists();"],
"description": "Checks if a record exists in the table. You can pass in either a primary key value to the key argument or a string to the where argument. If you don't pass in either of those, it will simply check if any record exists in the table."
},
"exists (long)": {
"prefix": "exists long",
"body": ["exists(key=$1, where=\"$2\", reload=$3, parameterize=$4, includeSoftDeletes=$5);"],
"description": "Checks if a record exists in the table. You can pass in either a primary key value to the key argument or a string to the where argument. If you don't pass in either of those, it will simply check if any record exists in the table."
},
"fileField": {
"prefix": "fileField",
"body": ["fileField(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a file field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"fileField (long)": {
"prefix": "fileField long",
"body": ["fileField(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", errorElement=\"$11\", errorClass=\"$12\");"],
"description": "Builds and returns a string containing a file field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"fileFieldTag": {
"prefix": "fileFieldTag",
"body": ["fileFieldTag(name=\"$1\");"],
"description": "Builds and returns a string containing a file form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"fileFieldTag (long)": {
"prefix": "fileFieldTag long",
"body": ["fileFieldTag(name=\"$1\", label=\"$2\", labelPlacement=\"$3\", prepend=\"$4\", append=\"$5\", prependToLabel=\"$6\", appendToLabel=\"$7\");"],
"description": "Builds and returns a string containing a file form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"filterChain": {
"prefix": "filterChain",
"body": ["filterChain();"],
"description": "Returns an array of all the filters set on current controller in the order in which they will be executed."
},
"filterChain (long)": {
"prefix": "filterChain long",
"body": ["filterChain(type=\"$1\");"],
"description": "Returns an array of all the filters set on current controller in the order in which they will be executed."
},
"filters": {
"prefix": "filters",
"body": ["filters(through=\"$1\");"],
"description": "Tells CFWheels to run a function before an action is run or after an action has been run."
},
"filters (long)": {
"prefix": "filters long",
"body": ["filters(through=\"$1\", type=\"$2\", only=\"$3\", except=\"$4\", placement=\"$5\");"],
"description": "Tells CFWheels to run a function before an action is run or after an action has been run."
},
"findAll": {
"prefix": "findAll",
"body": ["findAll();"],
"description": "Returns records from the database table mapped to this model according to the arguments passed in (use the where argument to decide which records to get, use the order argument to set the order in which those records should be returned, and so on). The records will be returned as either a cfquery result set, an array of objects, or an array of structs (depending on what the returnAs argument is set to)."
},
"findAll (long)": {
"prefix": "findAll long",
"body": ["findAll(where=\"$1\", order=\"$2\", group=\"$3\", select=\"$4\", distinct=$5, include=\"$6\", maxRows=$7, page=$8, perPage=$9, count=$10, handle=\"$11\", cache=$12, reload=$13, parameterize=$14, returnAs=\"$15\", returnIncluded=$16, callbacks=$17, includeSoftDeletes=$18, $limit=$19, $offset=$20);"],
"description": "Returns records from the database table mapped to this model according to the arguments passed in (use the where argument to decide which records to get, use the order argument to set the order in which those records should be returned, and so on). The records will be returned as either a cfquery result set, an array of objects, or an array of structs (depending on what the returnAs argument is set to)."
},
"findAllKeys": {
"prefix": "findAllKeys",
"body": ["findAllKeys();"],
"description": "Returns all primary key values in a list. In addition to quoted and delimiter you can pass in any argument that findAll() accepts."
},
"findAllKeys (long)": {
"prefix": "findAllKeys long",
"body": ["findAllKeys(quoted=$1, delimiter=\"$2\");"],
"description": "Returns all primary key values in a list. In addition to quoted and delimiter you can pass in any argument that findAll() accepts."
},
"findByKey": {
"prefix": "findByKey",
"body": ["findByKey(key=$1);"],
"description": "Fetches the requested record by primary key and returns it as an object. Returns false if no record is found. You can override this behavior to return a cfquery result set instead, similar to what's described in the documentation for findOne()."
},
"findByKey (long)": {
"prefix": "findByKey long",
"body": ["findByKey(key=$1, select=\"$2\", include=\"$3\", handle=\"$4\", cache=$5, reload=$6, parameterize=$7, returnAs=\"$8\", callbacks=$9, includeSoftDeletes=$10);"],
"description": "Fetches the requested record by primary key and returns it as an object. Returns false if no record is found. You can override this behavior to return a cfquery result set instead, similar to what's described in the documentation for findOne()."
},
"findFirst": {
"prefix": "findFirst",
"body": ["findFirst();"],
"description": "Fetches the first record ordered by primary key value. Use the property argument to order by something else. Returns a model object."
},
"findFirst (long)": {
"prefix": "findFirst long",
"body": ["findFirst(property=\"$1\", $sort=\"$2\");"],
"description": "Fetches the first record ordered by primary key value. Use the property argument to order by something else. Returns a model object."
},
"findLast": {
"prefix": "findLast",
"body": ["findLast();"],
"description": "Fetches the last record ordered by primary key value. Use the property argument to order by something else. Returns a model object."
},
"findLast (long)": {
"prefix": "findLast long",
"body": ["findLast(property=\"$1\");"],
"description": "Fetches the last record ordered by primary key value. Use the property argument to order by something else. Returns a model object."
},
"findOne": {
"prefix": "findOne",
"body": ["findOne();"],
"description": "Fetches the first record found based on the WHERE and ORDER BY clauses. With the default settings (i.e. the returnAs argument set to object), a model object will be returned if the record is found and the boolean value false if not. Instead of using the where argument, you can create cleaner code by making use of a concept called Dynamic Finders."
},
"findOne (long)": {
"prefix": "findOne long",
"body": ["findOne(where=\"$1\", order=\"$2\", select=\"$3\", include=\"$4\", handle=\"$5\", cache=$6, reload=$7, parameterize=$8, returnAs=\"$9\", includeSoftDeletes=$10);"],
"description": "Fetches the first record found based on the WHERE and ORDER BY clauses. With the default settings (i.e. the returnAs argument set to object), a model object will be returned if the record is found and the boolean value false if not. Instead of using the where argument, you can create cleaner code by making use of a concept called Dynamic Finders."
},
"flash": {
"prefix": "flash",
"body": ["flash();"],
"description": "Returns the value of a specific key in the Flash (or the entire Flash as a struct if no key is passed in)."
},
"flash (long)": {
"prefix": "flash long",
"body": ["flash(key=\"$1\");"],
"description": "Returns the value of a specific key in the Flash (or the entire Flash as a struct if no key is passed in)."
},
"flashClear": {
"prefix": "flashClear",
"body": ["flashClear();"],
"description": "Deletes everything from the Flash."
},
"flashClear (long)": {
"prefix": "flashClear long",
"body": ["flashClear();"],
"description": "Deletes everything from the Flash."
},
"flashCount": {
"prefix": "flashCount",
"body": ["flashCount();"],
"description": "Returns how many keys exist in the Flash."
},
"flashCount (long)": {
"prefix": "flashCount long",
"body": ["flashCount();"],
"description": "Returns how many keys exist in the Flash."
},
"flashDelete": {
"prefix": "flashDelete",
"body": ["flashDelete(key=\"$1\");"],
"description": "Deletes a specific key from the Flash. Returns true if the key exists."
},
"flashDelete (long)": {
"prefix": "flashDelete long",
"body": ["flashDelete(key=\"$1\");"],
"description": "Deletes a specific key from the Flash. Returns true if the key exists."
},
"flashInsert": {
"prefix": "flashInsert",
"body": ["flashInsert();"],
"description": "Inserts a new key / value into the Flash."
},
"flashInsert (long)": {
"prefix": "flashInsert long",
"body": ["flashInsert();"],
"description": "Inserts a new key / value into the Flash."
},
"flashIsEmpty": {
"prefix": "flashIsEmpty",
"body": ["flashIsEmpty();"],
"description": "Returns whether or not the Flash is empty."
},
"flashIsEmpty (long)": {
"prefix": "flashIsEmpty long",
"body": ["flashIsEmpty();"],
"description": "Returns whether or not the Flash is empty."
},
"flashKeep": {
"prefix": "flashKeep",
"body": ["flashKeep();"],
"description": "Make the entire Flash or specific key in it stick around for one more request."
},
"flashKeep (long)": {
"prefix": "flashKeep long",
"body": ["flashKeep(key=\"$1\");"],
"description": "Make the entire Flash or specific key in it stick around for one more request."
},
"flashKeyExists": {
"prefix": "flashKeyExists",
"body": ["flashKeyExists(key=\"$1\");"],
"description": "Checks if a specific key exists in the Flash."
},
"flashKeyExists (long)": {
"prefix": "flashKeyExists long",
"body": ["flashKeyExists(key=\"$1\");"],
"description": "Checks if a specific key exists in the Flash."
},
"flashMessages": {
"prefix": "flashMessages",
"body": ["flashMessages();"],
"description": "Displays a marked-up listing of messages that exist in the Flash."
},
"flashMessages (long)": {
"prefix": "flashMessages long",
"body": ["flashMessages(keys=\"$1\", class=\"$2\", includeEmptyContainer=$3, lowerCaseDynamicClassValues=$4);"],
"description": "Displays a marked-up listing of messages that exist in the Flash."
},
"get": {
"prefix": "get",
"body": ["get(name=\"$1\");"],
"description": "Returns the current setting for the supplied Wheels setting or the current default for the supplied Wheels function argument."
},
"get (long)": {
"prefix": "get long",
"body": ["get(name=\"$1\", functionName=\"$2\");"],
"description": "Returns the current setting for the supplied Wheels setting or the current default for the supplied Wheels function argument."
},
"getAvailableMigrations": {
"prefix": "getAvailableMigrations",
"body": ["getAvailableMigrations();"],
"description": "Searches db/migrate folder for migrations. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"getAvailableMigrations (long)": {
"prefix": "getAvailableMigrations long",
"body": ["getAvailableMigrations(path=\"$1\");"],
"description": "Searches db/migrate folder for migrations. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"getCurrentMigrationVersion": {
"prefix": "getCurrentMigrationVersion",
"body": ["getCurrentMigrationVersion();"],
"description": "Returns current database version. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"getCurrentMigrationVersion (long)": {
"prefix": "getCurrentMigrationVersion long",
"body": ["getCurrentMigrationVersion();"],
"description": "Returns current database version. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"getRedirect": {
"prefix": "getRedirect",
"body": ["getRedirect();"],
"description": "Mainly used for testing to establish whether the current request has performed a redirect\nPrimarily used for testing"
},
"getRedirect (long)": {
"prefix": "getRedirect long",
"body": ["getRedirect();"],
"description": "Mainly used for testing to establish whether the current request has performed a redirect\nPrimarily used for testing"
},
"getTableNamePrefix": {
"prefix": "getTableNamePrefix",
"body": ["getTableNamePrefix();"],
"description": "Returns the table name prefix set for the table."
},
"getTableNamePrefix (long)": {
"prefix": "getTableNamePrefix long",
"body": ["getTableNamePrefix();"],
"description": "Returns the table name prefix set for the table."
},
"hasChanged": {
"prefix": "hasChanged",
"body": ["hasChanged();"],
"description": "Returns true if the specified property (or any if none was passed in) has been changed but not yet saved to the database. Will also return true if the object is new and no record for it exists in the database."
},
"hasChanged (long)": {
"prefix": "hasChanged long",
"body": ["hasChanged(property=\"$1\");"],
"description": "Returns true if the specified property (or any if none was passed in) has been changed but not yet saved to the database. Will also return true if the object is new and no record for it exists in the database."
},
"hasErrors": {
"prefix": "hasErrors",
"body": ["hasErrors();"],
"description": "Returns true if the object has any errors. You can also limit to only check a specific property or name for errors."
},
"hasErrors (long)": {
"prefix": "hasErrors long",
"body": ["hasErrors(property=\"$1\", name=\"$2\");"],
"description": "Returns true if the object has any errors. You can also limit to only check a specific property or name for errors."
},
"hasMany": {
"prefix": "hasMany",
"body": ["hasMany(name=\"$1\");"],
"description": "Sets up a hasMany association between this model and the specified one."
},
"hasMany (long)": {
"prefix": "hasMany long",
"body": ["hasMany(name=\"$1\", modelName=\"$2\", foreignKey=\"$3\", joinKey=\"$4\", joinType=\"$5\", dependent=\"$6\", shortcut=\"$7\", through=\"$8\");"],
"description": "Sets up a hasMany association between this model and the specified one."
},
"hasManyCheckBox": {
"prefix": "hasManyCheckBox",
"body": ["hasManyCheckBox(objectName=\"$1\", association=\"$2\", keys=\"$3\");"],
"description": "Used as a shortcut to output the proper form elements for an association. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hasManyCheckBox (long)": {
"prefix": "hasManyCheckBox long",
"body": ["hasManyCheckBox(objectName=\"$1\", association=\"$2\", keys=\"$3\", label=\"$4\", labelPlacement=\"$5\", prepend=\"$6\", append=\"$7\", prependToLabel=\"$8\", appendToLabel=\"$9\", errorElement=\"$10\", errorClass=\"$11\");"],
"description": "Used as a shortcut to output the proper form elements for an association. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hasManyRadioButton": {
"prefix": "hasManyRadioButton",
"body": ["hasManyRadioButton(objectName=\"$1\", association=\"$2\", property=\"$3\", keys=\"$4\", tagValue=\"$5\");"],
"description": "Used as a shortcut to output the proper form elements for an association. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hasManyRadioButton (long)": {
"prefix": "hasManyRadioButton long",
"body": ["hasManyRadioButton(objectName=\"$1\", association=\"$2\", property=\"$3\", keys=\"$4\", tagValue=\"$5\", checkIfBlank=$6, label=\"$7\");"],
"description": "Used as a shortcut to output the proper form elements for an association. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hasOne": {
"prefix": "hasOne",
"body": ["hasOne(name=\"$1\");"],
"description": "Sets up a hasOne association between this model and the specified one."
},
"hasOne (long)": {
"prefix": "hasOne long",
"body": ["hasOne(name=\"$1\", modelName=\"$2\", foreignKey=\"$3\", joinKey=\"$4\", joinType=\"$5\", dependent=\"$6\");"],
"description": "Sets up a hasOne association between this model and the specified one."
},
"hasProperty": {
"prefix": "hasProperty",
"body": ["hasProperty(property=\"$1\");"],
"description": "Returns true if the specified property name exists on the model."
},
"hasProperty (long)": {
"prefix": "hasProperty long",
"body": ["hasProperty(property=\"$1\");"],
"description": "Returns true if the specified property name exists on the model."
},
"hiddenField": {
"prefix": "hiddenField",
"body": ["hiddenField(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a hidden field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hiddenField (long)": {
"prefix": "hiddenField long",
"body": ["hiddenField(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\");"],
"description": "Builds and returns a string containing a hidden field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hiddenFieldTag": {
"prefix": "hiddenFieldTag",
"body": ["hiddenFieldTag(name=\"$1\");"],
"description": "Builds and returns a string containing a hidden field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"hiddenFieldTag (long)": {
"prefix": "hiddenFieldTag long",
"body": ["hiddenFieldTag(name=\"$1\", value=\"$2\");"],
"description": "Builds and returns a string containing a hidden field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"highlight": {
"prefix": "highlight",
"body": ["highlight(text=\"$1\", phrases=\"$2\");"],
"description": "Highlights the phrase(s) everywhere in the text if found by wrapping it in a span tag."
},
"highlight (long)": {
"prefix": "highlight long",
"body": ["highlight(text=\"$1\", phrases=\"$2\", delimiter=\"$3\", tag=\"$4\", class=\"$5\");"],
"description": "Highlights the phrase(s) everywhere in the text if found by wrapping it in a span tag."
},
"hourSelectTag": {
"prefix": "hourSelectTag",
"body": ["hourSelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing one select form control for the hours of the day based on the supplied name."
},
"hourSelectTag (long)": {
"prefix": "hourSelectTag long",
"body": ["hourSelectTag(name=\"$1\", selected=\"$2\", includeBlank=$3, label=\"$4\", labelPlacement=\"$5\", prepend=\"$6\", append=\"$7\", prependToLabel=\"$8\", appendToLabel=\"$9\", twelveHour=$10, $now=$11);"],
"description": "Builds and returns a string containing one select form control for the hours of the day based on the supplied name."
},
"humanize": {
"prefix": "humanize",
"body": ["humanize(text=\"$1\");"],
"description": "Returns readable text by capitalizing and converting camel casing to multiple words."
},
"humanize (long)": {
"prefix": "humanize long",
"body": ["humanize(text=\"$1\", except=\"$2\");"],
"description": "Returns readable text by capitalizing and converting camel casing to multiple words."
},
"hyphenize": {
"prefix": "hyphenize",
"body": ["hyphenize(string=\"$1\");"],
"description": "Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable."
},
"hyphenize (long)": {
"prefix": "hyphenize long",
"body": ["hyphenize(string=\"$1\");"],
"description": "Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable."
},
"imageTag": {
"prefix": "imageTag",
"body": ["imageTag(source=\"$1\");"],
"description": "Returns an img tag.\nIf the image is stored in the local images folder, the tag will also set the width, height, and alt attributes for you.\nYou can pass any additional arguments (e.g. class, rel, id), and the generated tag will also include those values as HTML attributes."
},
"imageTag (long)": {
"prefix": "imageTag long",
"body": ["imageTag(source=\"$1\", onlyPath=$2, host=\"$3\", protocol=\"$4\", port=$5);"],
"description": "Returns an img tag.\nIf the image is stored in the local images folder, the tag will also set the width, height, and alt attributes for you.\nYou can pass any additional arguments (e.g. class, rel, id), and the generated tag will also include those values as HTML attributes."
},
"includeContent": {
"prefix": "includeContent",
"body": ["includeContent();"],
"description": "Used to output the content for a particular section in a layout."
},
"includeContent (long)": {
"prefix": "includeContent long",
"body": ["includeContent(name=\"$1\", defaultValue=\"$2\");"],
"description": "Used to output the content for a particular section in a layout."
},
"includedInObject": {
"prefix": "includedInObject",
"body": ["includedInObject(objectName=\"$1\", association=\"$2\", keys=\"$3\");"],
"description": "Used as a shortcut to check if the specified IDs are a part of the main form object. This method should only be used for hasMany associations."
},
"includedInObject (long)": {
"prefix": "includedInObject long",
"body": ["includedInObject(objectName=\"$1\", association=\"$2\", keys=\"$3\");"],
"description": "Used as a shortcut to check if the specified IDs are a part of the main form object. This method should only be used for hasMany associations."
},
"includeLayout": {
"prefix": "includeLayout",
"body": ["includeLayout();"],
"description": "Includes the contents of another layout file. This is usually used to include a parent layout from within a child layout."
},
"includeLayout (long)": {
"prefix": "includeLayout long",
"body": ["includeLayout(name=\"$1\");"],
"description": "Includes the contents of another layout file. This is usually used to include a parent layout from within a child layout."
},
"includePartial": {
"prefix": "includePartial",
"body": ["includePartial(partial=$1);"],
"description": "Includes the specified partial file in the view. Similar to using cfinclude but with the ability to cache the result and use Wheels-specific file look-up. By default, CFWheels will look for the file in the current controller's view folder. To include a file relative from the base views folder, you can start the path supplied to name with a forward slash."
},
"includePartial (long)": {
"prefix": "includePartial long",
"body": ["includePartial(partial=$1, group=\"$2\", cache=$3, layout=\"$4\", spacer=\"$5\", dataFunction=$6, $prependWithUnderscore=$7);"],
"description": "Includes the specified partial file in the view. Similar to using cfinclude but with the ability to cache the result and use Wheels-specific file look-up. By default, CFWheels will look for the file in the current controller's view folder. To include a file relative from the base views folder, you can start the path supplied to name with a forward slash."
},
"invokeWithTransaction": {
"prefix": "invokeWithTransaction",
"body": ["invokeWithTransaction(method=\"$1\");"],
"description": "Runs the specified method within a single database transaction."
},
"invokeWithTransaction (long)": {
"prefix": "invokeWithTransaction long",
"body": ["invokeWithTransaction(method=\"$1\", transaction=\"$2\", isolation=\"$3\");"],
"description": "Runs the specified method within a single database transaction."
},
"isAjax": {
"prefix": "isAjax",
"body": ["isAjax();"],
"description": "Returns whether the page was called from JavaScript or not."
},
"isAjax (long)": {
"prefix": "isAjax long",
"body": ["isAjax();"],
"description": "Returns whether the page was called from JavaScript or not."
},
"isClass": {
"prefix": "isClass",
"body": ["isClass();"],
"description": "Use this method within a model's method to check whether you are currently in a class-level object."
},
"isClass (long)": {
"prefix": "isClass long",
"body": ["isClass();"],
"description": "Use this method within a model's method to check whether you are currently in a class-level object."
},
"isDelete": {
"prefix": "isDelete",
"body": ["isDelete();"],
"description": "Returns whether the request was a DELETE request or not."
},
"isDelete (long)": {
"prefix": "isDelete long",
"body": ["isDelete();"],
"description": "Returns whether the request was a DELETE request or not."
},
"isGet": {
"prefix": "isGet",
"body": ["isGet();"],
"description": "Returns whether the request was a normal GET request or not."
},
"isGet (long)": {
"prefix": "isGet long",
"body": ["isGet();"],
"description": "Returns whether the request was a normal GET request or not."
},
"isHead": {
"prefix": "isHead",
"body": ["isHead();"],
"description": "Returns whether the request was a HEAD request or not."
},
"isHead (long)": {
"prefix": "isHead long",
"body": ["isHead();"],
"description": "Returns whether the request was a HEAD request or not."
},
"isInstance": {
"prefix": "isInstance",
"body": ["isInstance();"],
"description": "Use this method to check whether you are currently in an instance object."
},
"isInstance (long)": {
"prefix": "isInstance long",
"body": ["isInstance();"],
"description": "Use this method to check whether you are currently in an instance object."
},
"isNew": {
"prefix": "isNew",
"body": ["isNew();"],
"description": "Returns true if this object hasn't been saved yet. (In other words, no matching record exists in the database yet.) Returns false if a record exists."
},
"isNew (long)": {
"prefix": "isNew long",
"body": ["isNew();"],
"description": "Returns true if this object hasn't been saved yet. (In other words, no matching record exists in the database yet.) Returns false if a record exists."
},
"isOptions": {
"prefix": "isOptions",
"body": ["isOptions();"],
"description": "Returns whether the request was a OPTIONS request or not."
},
"isOptions (long)": {
"prefix": "isOptions long",
"body": ["isOptions();"],
"description": "Returns whether the request was a OPTIONS request or not."
},
"isPatch": {
"prefix": "isPatch",
"body": ["isPatch();"],
"description": "Returns whether the request was a PATCH request or not."
},
"isPatch (long)": {
"prefix": "isPatch long",
"body": ["isPatch();"],
"description": "Returns whether the request was a PATCH request or not."
},
"isPersisted": {
"prefix": "isPersisted",
"body": ["isPersisted();"],
"description": "Returns true if this object has been persisted to the database or was loaded from the database via a finder. Returns false if the record has not been persisted to the database."
},
"isPersisted (long)": {
"prefix": "isPersisted long",
"body": ["isPersisted();"],
"description": "Returns true if this object has been persisted to the database or was loaded from the database via a finder. Returns false if the record has not been persisted to the database."
},
"isPost": {
"prefix": "isPost",
"body": ["isPost();"],
"description": "Returns whether the request came from a form POST submission or not."
},
"isPost (long)": {
"prefix": "isPost long",
"body": ["isPost();"],
"description": "Returns whether the request came from a form POST submission or not."
},
"isPut": {
"prefix": "isPut",
"body": ["isPut();"],
"description": "Returns whether the request was a PUT request or not."
},
"isPut (long)": {
"prefix": "isPut long",
"body": ["isPut();"],
"description": "Returns whether the request was a PUT request or not."
},
"isSecure": {
"prefix": "isSecure",
"body": ["isSecure();"],
"description": "Returns whether CFWheels is communicating over a secure port."
},
"isSecure (long)": {
"prefix": "isSecure long",
"body": ["isSecure();"],
"description": "Returns whether CFWheels is communicating over a secure port."
},
"javaScriptIncludeTag": {
"prefix": "javaScriptIncludeTag",
"body": ["javaScriptIncludeTag();"],
"description": "Returns a script tag for a JavaScript file (or several) based on the supplied arguments."
},
"javaScriptIncludeTag (long)": {
"prefix": "javaScriptIncludeTag long",
"body": ["javaScriptIncludeTag(sources=\"$1\", type=\"$2\", head=\"$3\", delim=\"$4\");"],
"description": "Returns a script tag for a JavaScript file (or several) based on the supplied arguments."
},
"key": {
"prefix": "key",
"body": ["key();"],
"description": "Returns the value of the primary key for the object. If you have a single primary key named id, then someObject.key() is functionally equivalent to someObject.id. This method is more useful when you do dynamic programming and don't know the name of the primary key or when you use composite keys (in which case it's convenient to use this method to get a list of both key values returned)."
},
"key (long)": {
"prefix": "key long",
"body": ["key($persisted=$1, $returnTickCountWhenNew=$2);"],
"description": "Returns the value of the primary key for the object. If you have a single primary key named id, then someObject.key() is functionally equivalent to someObject.id. This method is more useful when you do dynamic programming and don't know the name of the primary key or when you use composite keys (in which case it's convenient to use this method to get a list of both key values returned)."
},
"linkTo": {
"prefix": "linkTo",
"body": ["linkTo();"],
"description": "Creates a link to another page in your application. Pass in the name of a route to use your configured routes or a controller/action/key combination. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"linkTo (long)": {
"prefix": "linkTo long",
"body": ["linkTo(text=\"$1\", route=\"$2\", controller=\"$3\", action=\"$4\", key=$5, params=\"$6\", anchor=\"$7\", onlyPath=$8, host=\"$9\", protocol=\"$10\", port=$11, href=\"$12\");"],
"description": "Creates a link to another page in your application. Pass in the name of a route to use your configured routes or a controller/action/key combination. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"mailTo": {
"prefix": "mailTo",
"body": ["mailTo(emailAddress=\"$1\");"],
"description": "Creates a mailto link tag to the specified email address, which is also used as the name of the link unless name is specified."
},
"mailTo (long)": {
"prefix": "mailTo long",
"body": ["mailTo(emailAddress=\"$1\", name=\"$2\", encode=$3);"],
"description": "Creates a mailto link tag to the specified email address, which is also used as the name of the link unless name is specified."
},
"maximum": {
"prefix": "maximum",
"body": ["maximum(property=\"$1\");"],
"description": "Calculates the maximum value for a given property. Uses the SQL function MAX. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"maximum (long)": {
"prefix": "maximum long",
"body": ["maximum(property=\"$1\", where=\"$2\", include=\"$3\", parameterize=$4, ifNull=$5, includeSoftDeletes=$6, group=\"$7\");"],
"description": "Calculates the maximum value for a given property. Uses the SQL function MAX. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"member": {
"prefix": "member",
"body": ["member();"],
"description": ""
},
"member (long)": {
"prefix": "member long",
"body": ["member();"],
"description": ""
},
"migrateTo": {
"prefix": "migrateTo",
"body": ["migrateTo();"],
"description": "Migrates database to a specified version. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"migrateTo (long)": {
"prefix": "migrateTo long",
"body": ["migrateTo(version=\"$1\");"],
"description": "Migrates database to a specified version. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface"
},
"mimeTypes": {
"prefix": "mimeTypes",
"body": ["mimeTypes(extension=\"$1\");"],
"description": "Returns an associated MIME type based on a file extension."
},
"mimeTypes (long)": {
"prefix": "mimeTypes long",
"body": ["mimeTypes(extension=\"$1\", fallback=\"$2\");"],
"description": "Returns an associated MIME type based on a file extension."
},
"minimum": {
"prefix": "minimum",
"body": ["minimum(property=\"$1\");"],
"description": "Calculates the minimum value for a given property. Uses the SQL function MIN. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"minimum (long)": {
"prefix": "minimum long",
"body": ["minimum(property=\"$1\", where=\"$2\", include=\"$3\", parameterize=$4, ifNull=$5, includeSoftDeletes=$6, group=\"$7\");"],
"description": "Calculates the minimum value for a given property. Uses the SQL function MIN. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"minuteSelectTag": {
"prefix": "minuteSelectTag",
"body": ["minuteSelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing one select form control for the minutes of an hour based on the supplied name."
},
"minuteSelectTag (long)": {
"prefix": "minuteSelectTag long",
"body": ["minuteSelectTag(name=\"$1\", selected=\"$2\", minuteStep=$3, includeBlank=$4, label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", $now=$11);"],
"description": "Builds and returns a string containing one select form control for the minutes of an hour based on the supplied name."
},
"model": {
"prefix": "model",
"body": ["model(name=\"$1\");"],
"description": "Returns a reference to the requested model so that class level methods can be called on it."
},
"model (long)": {
"prefix": "model long",
"body": ["model(name=\"$1\");"],
"description": "Returns a reference to the requested model so that class level methods can be called on it."
},
"monthSelectTag": {
"prefix": "monthSelectTag",
"body": ["monthSelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing a select form control for the months of the year based on the supplied name."
},
"monthSelectTag (long)": {
"prefix": "monthSelectTag long",
"body": ["monthSelectTag(name=\"$1\", selected=\"$2\", monthDisplay=\"$3\", monthNames=\"$4\", monthAbbreviations=\"$5\", includeBlank=$6, label=\"$7\", labelPlacement=\"$8\", prepend=\"$9\", append=\"$10\", prependToLabel=\"$11\", appendToLabel=\"$12\", $now=$13);"],
"description": "Builds and returns a string containing a select form control for the months of the year based on the supplied name."
},
"namespace": {
"prefix": "namespace",
"body": ["namespace(module=\"$1\");"],
"description": ""
},
"namespace (long)": {
"prefix": "namespace long",
"body": ["namespace(module=\"$1\", name=\"$2\", path=\"$3\");"],
"description": ""
},
"nestedProperties": {
"prefix": "nestedProperties",
"body": ["nestedProperties();"],
"description": "Allows for nested objects, structs, and arrays to be set from params and other generated data."
},
"nestedProperties (long)": {
"prefix": "nestedProperties long",
"body": ["nestedProperties(association=\"$1\", autoSave=$2, allowDelete=$3, sortProperty=\"$4\", rejectIfBlank=\"$5\");"],
"description": "Allows for nested objects, structs, and arrays to be set from params and other generated data."
},
"new": {
"prefix": "new",
"body": ["new();"],
"description": "Creates a new object based on supplied properties and returns it.\nThe object is not saved to the database, it only exists in memory.\nProperty names and values can be passed in either using named arguments or as a struct to the properties argument."
},
"new (long)": {
"prefix": "new long",
"body": ["new(properties=$1, callbacks=$2);"],
"description": "Creates a new object based on supplied properties and returns it.\nThe object is not saved to the database, it only exists in memory.\nProperty names and values can be passed in either using named arguments or as a struct to the properties argument."
},
"obfuscateParam": {
"prefix": "obfuscateParam",
"body": ["obfuscateParam(param=$1);"],
"description": "Obfuscates a value. Typically used for hiding primary key values when passed along in the URL."
},
"obfuscateParam (long)": {
"prefix": "obfuscateParam long",
"body": ["obfuscateParam(param=$1);"],
"description": "Obfuscates a value. Typically used for hiding primary key values when passed along in the URL."
},
"onlyProvides": {
"prefix": "onlyProvides",
"body": ["onlyProvides();"],
"description": "Use this in an individual controller action to define which formats the action will respond with. This can be used to define provides behavior in individual actions or to override a global setting set with provides in the controller's init()."
},
"onlyProvides (long)": {
"prefix": "onlyProvides long",
"body": ["onlyProvides(formats=\"$1\", action=\"$2\");"],
"description": "Use this in an individual controller action to define which formats the action will respond with. This can be used to define provides behavior in individual actions or to override a global setting set with provides in the controller's init()."
},
"onMissingMethod": {
"prefix": "onMissingMethod",
"body": ["onMissingMethod(missingMethodName=\"$1\", missingMethodArguments=$2);"],
"description": "This function is not designed to be called directly from your code, but provides functionality for dyanmic finders such as findOneByEmail()"
},
"onMissingMethod (long)": {
"prefix": "onMissingMethod long",
"body": ["onMissingMethod(missingMethodName=\"$1\", missingMethodArguments=$2);"],
"description": "This function is not designed to be called directly from your code, but provides functionality for dyanmic finders such as findOneByEmail()"
},
"pagination": {
"prefix": "pagination",
"body": ["pagination();"],
"description": "Returns a struct with information about the specificed paginated query. The keys that will be included in the struct are currentPage, totalPages and totalRecords."
},
"pagination (long)": {
"prefix": "pagination long",
"body": ["pagination(handle=\"$1\");"],
"description": "Returns a struct with information about the specificed paginated query. The keys that will be included in the struct are currentPage, totalPages and totalRecords."
},
"paginationLinks": {
"prefix": "paginationLinks",
"body": ["paginationLinks();"],
"description": "Builds and returns a string containing links to pages based on a paginated query. Uses linkTo() internally to build the link, so you need to pass in a route name or a controller/action/key combination. All other linkTo() arguments can be supplied as well, in which case they are passed through directly to linkTo(). If you have paginated more than one query in the controller, you can use the handle argument to reference them. (Don't forget to pass in a handle to the findAll() function in your controller first.)"
},
"paginationLinks (long)": {
"prefix": "paginationLinks long",
"body": ["paginationLinks(windowSize=$1, alwaysShowAnchors=$2, anchorDivider=\"$3\", linkToCurrentPage=$4, prepend=\"$5\", append=\"$6\", prependToPage=\"$7\", prependOnFirst=$8, prependOnAnchor=$9, appendToPage=\"$10\", appendOnLast=$11, appendOnAnchor=$12, classForCurrent=\"$13\", handle=\"$14\", name=\"$15\", showSinglePage=$16, pageNumberAsParam=$17);"],
"description": "Builds and returns a string containing links to pages based on a paginated query. Uses linkTo() internally to build the link, so you need to pass in a route name or a controller/action/key combination. All other linkTo() arguments can be supplied as well, in which case they are passed through directly to linkTo(). If you have paginated more than one query in the controller, you can use the handle argument to reference them. (Don't forget to pass in a handle to the findAll() function in your controller first.)"
},
"passwordField": {
"prefix": "passwordField",
"body": ["passwordField(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a password field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"passwordField (long)": {
"prefix": "passwordField long",
"body": ["passwordField(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", errorElement=\"$11\", errorClass=\"$12\");"],
"description": "Builds and returns a string containing a password field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"passwordFieldTag": {
"prefix": "passwordFieldTag",
"body": ["passwordFieldTag(name=\"$1\");"],
"description": "Builds and returns a string containing a password field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"passwordFieldTag (long)": {
"prefix": "passwordFieldTag long",
"body": ["passwordFieldTag(name=\"$1\", value=\"$2\", label=\"$3\", labelPlacement=\"$4\", prepend=\"$5\", append=\"$6\", prependToLabel=\"$7\", appendToLabel=\"$8\");"],
"description": "Builds and returns a string containing a password field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"patch": {
"prefix": "patch",
"body": ["patch();"],
"description": "Match a PATCH url."
},
"patch (long)": {
"prefix": "patch long",
"body": ["patch(name=\"$1\");"],
"description": "Match a PATCH url."
},
"pluginNames": {
"prefix": "pluginNames",
"body": ["pluginNames();"],
"description": "Returns a list of all installed plugins' names."
},
"pluginNames (long)": {
"prefix": "pluginNames long",
"body": ["pluginNames();"],
"description": "Returns a list of all installed plugins' names."
},
"pluralize": {
"prefix": "pluralize",
"body": ["pluralize(word=\"$1\");"],
"description": "Returns the plural form of the passed in word. Can also pluralize a word based on a value passed to the count argument."
},
"pluralize (long)": {
"prefix": "pluralize long",
"body": ["pluralize(word=\"$1\", count=$2, returnCount=$3);"],
"description": "Returns the plural form of the passed in word. Can also pluralize a word based on a value passed to the count argument."
},
"post": {
"prefix": "post",
"body": ["post();"],
"description": "Match a POST url."
},
"post (long)": {
"prefix": "post long",
"body": ["post(name=\"$1\");"],
"description": "Match a POST url."
},
"primaryKey": {
"prefix": "primaryKey",
"body": ["primaryKey();"],
"description": "Returns the name of the primary key for this model's table. This is determined through database introspection. If composite primary keys have been used, they will both be returned in a list. This function is also aliased as primaryKeys()."
},
"primaryKey (long)": {
"prefix": "primaryKey long",
"body": ["primaryKey(position=$1);"],
"description": "Returns the name of the primary key for this model's table. This is determined through database introspection. If composite primary keys have been used, they will both be returned in a list. This function is also aliased as primaryKeys()."
},
"primaryKeys": {
"prefix": "primaryKeys",
"body": ["primaryKeys();"],
"description": "Alias for primaryKey(). Use this for better readability when you're accessing multiple primary keys."
},
"primaryKeys (long)": {
"prefix": "primaryKeys long",
"body": ["primaryKeys(position=$1);"],
"description": "Alias for primaryKey(). Use this for better readability when you're accessing multiple primary keys."
},
"processAction": {
"prefix": "processAction",
"body": ["processAction();"],
"description": "Process the specified action of the controller; this is exposed in the API primarily for testing purposes; you would\nnot usually call it directly unless in the test suite"
},
"processAction (long)": {
"prefix": "processAction long",
"body": ["processAction();"],
"description": "Process the specified action of the controller; this is exposed in the API primarily for testing purposes; you would\nnot usually call it directly unless in the test suite"
},
"processRequest": {
"prefix": "processRequest",
"body": ["processRequest(params=$1);"],
"description": "Creates a controller and calls an action on it.\nWhich controller and action that's called is determined by the params passed in.\nReturns the result of the request either as a string or in a struct with body, status and type.\nPrimarily used for testing purposes."
},
"processRequest (long)": {
"prefix": "processRequest long",
"body": ["processRequest(params=$1, returnAs=\"$2\");"],
"description": "Creates a controller and calls an action on it.\nWhich controller and action that's called is determined by the params passed in.\nReturns the result of the request either as a string or in a struct with body, status and type.\nPrimarily used for testing purposes."
},
"properties": {
"prefix": "properties",
"body": ["properties();"],
"description": "Returns a structure of all the properties with their names as keys and the values of the property as values."
},
"properties (long)": {
"prefix": "properties long",
"body": ["properties(returnIncludedAs=\"$1\", returnIncluded=$2);"],
"description": "Returns a structure of all the properties with their names as keys and the values of the property as values."
},
"property": {
"prefix": "property",
"body": ["property(name=\"$1\");"],
"description": "Use this method to map an object property to either a table column with a different name than the property or to a SQL expression. You only need to use this method when you want to override the default object relational mapping that Wheels performs."
},
"property (long)": {
"prefix": "property long",
"body": ["property(name=\"$1\", column=\"$2\", sql=\"$3\", label=\"$4\", defaultValue=\"$5\", select=$6, dataType=\"$7\");"],
"description": "Use this method to map an object property to either a table column with a different name than the property or to a SQL expression. You only need to use this method when you want to override the default object relational mapping that Wheels performs."
},
"propertyIsBlank": {
"prefix": "propertyIsBlank",
"body": ["propertyIsBlank(property=\"$1\");"],
"description": "Returns true if the specified property doesn't exist on the model or is an empty string.\nThis method is the inverse of propertyIsPresent()."
},
"propertyIsBlank (long)": {
"prefix": "propertyIsBlank long",
"body": ["propertyIsBlank(property=\"$1\");"],
"description": "Returns true if the specified property doesn't exist on the model or is an empty string.\nThis method is the inverse of propertyIsPresent()."
},
"propertyIsPresent": {
"prefix": "propertyIsPresent",
"body": ["propertyIsPresent(property=\"$1\");"],
"description": "Returns true if the specified property exists on the model and is not a blank string."
},
"propertyIsPresent (long)": {
"prefix": "propertyIsPresent long",
"body": ["propertyIsPresent(property=\"$1\");"],
"description": "Returns true if the specified property exists on the model and is not a blank string."
},
"propertyNames": {
"prefix": "propertyNames",
"body": ["propertyNames();"],
"description": "Returns a list of property names ordered by their respective column's ordinal position in the database table. Also includes calculated property names that will be generated by the Wheels ORM."
},
"propertyNames (long)": {
"prefix": "propertyNames long",
"body": ["propertyNames();"],
"description": "Returns a list of property names ordered by their respective column's ordinal position in the database table. Also includes calculated property names that will be generated by the Wheels ORM."
},
"protectedProperties": {
"prefix": "protectedProperties",
"body": ["protectedProperties();"],
"description": "Use this method to specify which properties cannot be set through mass assignment."
},
"protectedProperties (long)": {
"prefix": "protectedProperties long",
"body": ["protectedProperties(properties=\"$1\");"],
"description": "Use this method to specify which properties cannot be set through mass assignment."
},
"protectsFromForgery": {
"prefix": "protectsFromForgery",
"body": ["protectsFromForgery();"],
"description": "Tells CFWheels to protect POSTed requests from CSRF vulnerabilities. Instructs the controller to verify that params.authenticityToken or X-CSRF-Token HTTP header is provided along with the request containing a valid authenticity token. Call this method within a controller's init method, preferably the base Controller.cfc\t file, to protect the entire application."
},
"protectsFromForgery (long)": {
"prefix": "protectsFromForgery long",
"body": ["protectsFromForgery(with=\"$1\", only=\"$2\", except=\"$3\");"],
"description": "Tells CFWheels to protect POSTed requests from CSRF vulnerabilities. Instructs the controller to verify that params.authenticityToken or X-CSRF-Token HTTP header is provided along with the request containing a valid authenticity token. Call this method within a controller's init method, preferably the base Controller.cfc\t file, to protect the entire application."
},
"provides": {
"prefix": "provides",
"body": ["provides();"],
"description": "Defines formats that the controller will respond with upon request. The format can be requested through a URL variable called format, by appending the format name to the end of a URL as an extension (when URL rewriting is enabled), or in the request header."
},
"provides (long)": {
"prefix": "provides long",
"body": ["provides(formats=\"$1\");"],
"description": "Defines formats that the controller will respond with upon request. The format can be requested through a URL variable called format, by appending the format name to the end of a URL as an extension (when URL rewriting is enabled), or in the request header."
},
"put": {
"prefix": "put",
"body": ["put();"],
"description": "Match a PUT url."
},
"put (long)": {
"prefix": "put long",
"body": ["put(name=\"$1\");"],
"description": "Match a PUT url."
},
"radioButton": {
"prefix": "radioButton",
"body": ["radioButton(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a radio button form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"radioButton (long)": {
"prefix": "radioButton long",
"body": ["radioButton(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", tagValue=\"$5\", label=\"$6\", labelPlacement=\"$7\", prepend=\"$8\", append=\"$9\", prependToLabel=\"$10\", appendToLabel=\"$11\", errorElement=\"$12\", errorClass=\"$13\");"],
"description": "Builds and returns a string containing a radio button form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"radioButtonTag": {
"prefix": "radioButtonTag",
"body": ["radioButtonTag(name=\"$1\", value=\"$2\");"],
"description": "Builds and returns a string containing a radio button form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"radioButtonTag (long)": {
"prefix": "radioButtonTag long",
"body": ["radioButtonTag(name=\"$1\", value=\"$2\", checked=$3, label=\"$4\", labelPlacement=\"$5\", prepend=\"$6\", append=\"$7\", prependToLabel=\"$8\", appendToLabel=\"$9\");"],
"description": "Builds and returns a string containing a radio button form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"redirectTo": {
"prefix": "redirectTo",
"body": ["redirectTo();"],
"description": "Redirects the browser to the supplied controller/action/key, route or back to the referring page. Internally, this function uses the URLFor function to build the link and the cflocation tag to perform the redirect."
},
"redirectTo (long)": {
"prefix": "redirectTo long",
"body": ["redirectTo(back=$1, addToken=$2, statusCode=$3, route=\"$4\", method=\"$5\", controller=\"$6\", action=\"$7\", key=$8, params=\"$9\", anchor=\"$10\", onlyPath=$11, host=\"$12\", protocol=\"$13\", port=$14, url=\"$15\", delay=$16);"],
"description": "Redirects the browser to the supplied controller/action/key, route or back to the referring page. Internally, this function uses the URLFor function to build the link and the cflocation tag to perform the redirect."
},
"reload": {
"prefix": "reload",
"body": ["reload();"],
"description": "Reloads the property values of this object from the database."
},
"reload (long)": {
"prefix": "reload long",
"body": ["reload();"],
"description": "Reloads the property values of this object from the database."
},
"renderNothing": {
"prefix": "renderNothing",
"body": ["renderNothing();"],
"description": "Instructs the controller to render an empty string when it's finished processing the action. This is very similar to calling cfabort with the advantage that any after filters you have set on the action will still be run."
},
"renderNothing (long)": {
"prefix": "renderNothing long",
"body": ["renderNothing();"],
"description": "Instructs the controller to render an empty string when it's finished processing the action. This is very similar to calling cfabort with the advantage that any after filters you have set on the action will still be run."
},
"renderPage": {
"prefix": "renderPage",
"body": ["renderPage();"],
"description": "Instructs the controller which view template and layout to render when it's finished processing the action. Note that when passing values for controller and/or action, this function does not execute the actual action but rather just loads the corresponding view template."
},
"renderPage (long)": {
"prefix": "renderPage long",
"body": ["renderPage(controller=\"$1\", action=\"$2\", template=\"$3\", layout=$4, cache=$5, returnAs=\"$6\", hideDebugInformation=$7);"],
"description": "Instructs the controller which view template and layout to render when it's finished processing the action. Note that when passing values for controller and/or action, this function does not execute the actual action but rather just loads the corresponding view template."
},
"renderPartial": {
"prefix": "renderPartial",
"body": ["renderPartial(partial=\"$1\");"],
"description": "Instructs the controller to render a partial when it's finished processing the action."
},
"renderPartial (long)": {
"prefix": "renderPartial long",
"body": ["renderPartial(partial=\"$1\", cache=$2, layout=\"$3\", returnAs=\"$4\", dataFunction=$5);"],
"description": "Instructs the controller to render a partial when it's finished processing the action."
},
"renderText": {
"prefix": "renderText",
"body": ["renderText(text=$1);"],
"description": "Instructs the controller to render specified text when it's finished processing the action."
},
"renderText (long)": {
"prefix": "renderText long",
"body": ["renderText(text=$1);"],
"description": "Instructs the controller to render specified text when it's finished processing the action."
},
"renderWith": {
"prefix": "renderWith",
"body": ["renderWith(data=$1);"],
"description": "Instructs the controller to render the data passed in to the format that is requested. If the format requested is json or xml, CFWheels will transform the data into that format automatically. For other formats (or to override the automatic formatting), you can also create a view template in this format: nameofaction.xml.cfm, nameofaction.json.cfm, nameofaction.pdf.cfm, etc."
},
"renderWith (long)": {
"prefix": "renderWith long",
"body": ["renderWith(data=$1, controller=\"$2\", action=\"$3\", template=\"$4\", layout=$5, cache=$6, returnAs=\"$7\", hideDebugInformation=$8, status=$9);"],
"description": "Instructs the controller to render the data passed in to the format that is requested. If the format requested is json or xml, CFWheels will transform the data into that format automatically. For other formats (or to override the automatic formatting), you can also create a view template in this format: nameofaction.xml.cfm, nameofaction.json.cfm, nameofaction.pdf.cfm, etc."
},
"resetCycle": {
"prefix": "resetCycle",
"body": ["resetCycle();"],
"description": "Resets a cycle so that it starts from the first list value the next time it is called."
},
"resetCycle (long)": {
"prefix": "resetCycle long",
"body": ["resetCycle(name=\"$1\");"],
"description": "Resets a cycle so that it starts from the first list value the next time it is called."
},
"resource": {
"prefix": "resource",
"body": ["resource(name=\"$1\");"],
"description": "Set up a singular REST resource."
},
"resource (long)": {
"prefix": "resource long",
"body": ["resource(name=\"$1\", nested=$2, path=\"$3\", controller=\"$4\", singular=\"$5\", plural=\"$6\", only=\"$7\", except=\"$8\", shallow=$9, shallowPath=\"$10\", shallowName=\"$11\", constraints=$12, $call=\"$13\", $plural=$14);"],
"description": "Set up a singular REST resource."
},
"resources": {
"prefix": "resources",
"body": ["resources(name=\"$1\");"],
"description": "Set up a plural REST resource."
},
"resources (long)": {
"prefix": "resources long",
"body": ["resources(name=\"$1\", nested=$2);"],
"description": "Set up a plural REST resource."
},
"response": {
"prefix": "response",
"body": ["response();"],
"description": "Returns content that CFWheels will send to the client in response to the request."
},
"response (long)": {
"prefix": "response long",
"body": ["response();"],
"description": "Returns content that CFWheels will send to the client in response to the request."
},
"root": {
"prefix": "root",
"body": ["root();"],
"description": "Match a root directory."
},
"root (long)": {
"prefix": "root long",
"body": ["root(to=\"$1\");"],
"description": "Match a root directory."
},
"save": {
"prefix": "save",
"body": ["save();"],
"description": "Saves the object if it passes validation and callbacks.\nReturns true if the object was saved successfully to the database, false if not."
},
"save (long)": {
"prefix": "save long",
"body": ["save(parameterize=$1, reload=$2, validate=$3, transaction=\"$4\", callbacks=$5);"],
"description": "Saves the object if it passes validation and callbacks.\nReturns true if the object was saved successfully to the database, false if not."
},
"scope": {
"prefix": "scope",
"body": ["scope();"],
"description": "Set certain parameters for future calls."
},
"scope (long)": {
"prefix": "scope long",
"body": ["scope(name=\"$1\", path=\"$2\", module=\"$3\", controller=\"$4\", shallow=$5, shallowPath=\"$6\", shallowName=\"$7\", constraints=$8, $call=\"$9\");"],
"description": "Set certain parameters for future calls."
},
"secondSelectTag": {
"prefix": "secondSelectTag",
"body": ["secondSelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing one select form control for the seconds of a minute based on the supplied name."
},
"secondSelectTag (long)": {
"prefix": "secondSelectTag long",
"body": ["secondSelectTag(name=\"$1\", selected=\"$2\", secondStep=$3, includeBlank=$4, label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", $now=$11);"],
"description": "Builds and returns a string containing one select form control for the seconds of a minute based on the supplied name."
},
"select": {
"prefix": "select",
"body": ["select(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a select form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"select (long)": {
"prefix": "select long",
"body": ["select(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", options=$5, includeBlank=$6, valueField=\"$7\", textField=\"$8\", label=\"$9\", labelPlacement=\"$10\", prepend=\"$11\", append=\"$12\", prependToLabel=\"$13\", appendToLabel=\"$14\", errorElement=\"$15\", errorClass=\"$16\");"],
"description": "Builds and returns a string containing a select form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"selectTag": {
"prefix": "selectTag",
"body": ["selectTag(name=\"$1\", options=$2);"],
"description": "Builds and returns a string containing a select form control based on the supplied name and options. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"selectTag (long)": {
"prefix": "selectTag long",
"body": ["selectTag(name=\"$1\", options=$2, selected=\"$3\", includeBlank=$4, multiple=$5, valueField=\"$6\", textField=\"$7\", label=\"$8\", labelPlacement=\"$9\", prepend=\"$10\", append=\"$11\", prependToLabel=\"$12\", appendToLabel=\"$13\");"],
"description": "Builds and returns a string containing a select form control based on the supplied name and options. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"sendEmail": {
"prefix": "sendEmail",
"body": ["sendEmail();"],
"description": "Sends an email using a template and an optional layout to wrap it in. Besides the CFWheels-specific arguments documented here, you can also pass in any argument that is accepted by the cfmail tag as well as your own arguments to be used by the view."
},
"sendEmail (long)": {
"prefix": "sendEmail long",
"body": ["sendEmail(template=\"$1\", from=\"$2\", to=\"$3\", subject=\"$4\", layout=$5, file=\"$6\", detectMultipart=$7, deliver=$8, writeToFile=\"$9\");"],
"description": "Sends an email using a template and an optional layout to wrap it in. Besides the CFWheels-specific arguments documented here, you can also pass in any argument that is accepted by the cfmail tag as well as your own arguments to be used by the view."
},
"sendFile": {
"prefix": "sendFile",
"body": ["sendFile(file=\"$1\");"],
"description": "Sends a file to the user (from the files folder or a path relative to it by default)."
},
"sendFile (long)": {
"prefix": "sendFile long",
"body": ["sendFile(file=\"$1\", name=\"$2\", type=\"$3\", disposition=\"$4\", directory=\"$5\", deleteFile=$6, $testingMode=$7);"],
"description": "Sends a file to the user (from the files folder or a path relative to it by default)."
},
"set": {
"prefix": "set",
"body": ["set();"],
"description": "Use to configure a global setting or set a default for a function."
},
"set (long)": {
"prefix": "set long",
"body": ["set();"],
"description": "Use to configure a global setting or set a default for a function."
},
"setFilterChain": {
"prefix": "setFilterChain",
"body": ["setFilterChain(chain=$1);"],
"description": "Use this function if you need a more low level way of setting the entire filter chain for a controller."
},
"setFilterChain (long)": {
"prefix": "setFilterChain long",
"body": ["setFilterChain(chain=$1);"],
"description": "Use this function if you need a more low level way of setting the entire filter chain for a controller."
},
"setPagination": {
"prefix": "setPagination",
"body": ["setPagination(totalRecords=$1);"],
"description": "Allows you to set a pagination handle for a custom query so you can perform pagination on it in your view with paginationLinks."
},
"setPagination (long)": {
"prefix": "setPagination long",
"body": ["setPagination(totalRecords=$1, currentPage=$2, perPage=$3, handle=\"$4\");"],
"description": "Allows you to set a pagination handle for a custom query so you can perform pagination on it in your view with paginationLinks."
},
"setPrimaryKey": {
"prefix": "setPrimaryKey",
"body": ["setPrimaryKey(property=\"$1\");"],
"description": "Allows you to pass in the name(s) of the property(s) that should be used as the primary key(s). Pass as a list if defining a composite primary key. Also aliased as setPrimaryKeys()."
},
"setPrimaryKey (long)": {
"prefix": "setPrimaryKey long",
"body": ["setPrimaryKey(property=\"$1\");"],
"description": "Allows you to pass in the name(s) of the property(s) that should be used as the primary key(s). Pass as a list if defining a composite primary key. Also aliased as setPrimaryKeys()."
},
"setPrimaryKeys": {
"prefix": "setPrimaryKeys",
"body": ["setPrimaryKeys(property=\"$1\");"],
"description": "Alias for setPrimaryKey(). Use this for better readability when you're setting multiple properties as the primary key."
},
"setPrimaryKeys (long)": {
"prefix": "setPrimaryKeys long",
"body": ["setPrimaryKeys(property=\"$1\");"],
"description": "Alias for setPrimaryKey(). Use this for better readability when you're setting multiple properties as the primary key."
},
"setProperties": {
"prefix": "setProperties",
"body": ["setProperties();"],
"description": "Allows you to set all the properties of an object at once by passing in a structure with keys matching the property names."
},
"setProperties (long)": {
"prefix": "setProperties long",
"body": ["setProperties(properties=$1);"],
"description": "Allows you to set all the properties of an object at once by passing in a structure with keys matching the property names."
},
"setResponse": {
"prefix": "setResponse",
"body": ["setResponse(content=\"$1\");"],
"description": "Sets content that CFWheels will send to the client in response to the request."
},
"setResponse (long)": {
"prefix": "setResponse long",
"body": ["setResponse(content=\"$1\");"],
"description": "Sets content that CFWheels will send to the client in response to the request."
},
"setTableNamePrefix": {
"prefix": "setTableNamePrefix",
"body": ["setTableNamePrefix(prefix=\"$1\");"],
"description": "Sets a prefix to prepend to the table name when this model runs SQL queries."
},
"setTableNamePrefix (long)": {
"prefix": "setTableNamePrefix long",
"body": ["setTableNamePrefix(prefix=\"$1\");"],
"description": "Sets a prefix to prepend to the table name when this model runs SQL queries."
},
"setVerificationChain": {
"prefix": "setVerificationChain",
"body": ["setVerificationChain(chain=$1);"],
"description": "Use this function if you need a more low level way of setting the entire verification chain for a controller."
},
"setVerificationChain (long)": {
"prefix": "setVerificationChain long",
"body": ["setVerificationChain(chain=$1);"],
"description": "Use this function if you need a more low level way of setting the entire verification chain for a controller."
},
"simpleFormat": {
"prefix": "simpleFormat",
"body": ["simpleFormat(text=\"$1\");"],
"description": "Replaces single newline characters with HTML break tags and double newline characters with HTML paragraph tags (properly closed to comply with XHTML standards)."
},
"simpleFormat (long)": {
"prefix": "simpleFormat long",
"body": ["simpleFormat(text=\"$1\", wrap=$2);"],
"description": "Replaces single newline characters with HTML break tags and double newline characters with HTML paragraph tags (properly closed to comply with XHTML standards)."
},
"singularize": {
"prefix": "singularize",
"body": ["singularize(word=\"$1\");"],
"description": "Returns the singular form of the passed in word."
},
"singularize (long)": {
"prefix": "singularize long",
"body": ["singularize(word=\"$1\");"],
"description": "Returns the singular form of the passed in word."
},
"startFormTag": {
"prefix": "startFormTag",
"body": ["startFormTag();"],
"description": "Builds and returns a string containing the opening form tag. The form's action will be built according to the same rules as URLFor. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"startFormTag (long)": {
"prefix": "startFormTag long",
"body": ["startFormTag(method=\"$1\", multipart=$2, route=\"$3\", controller=\"$4\", action=\"$5\", key=$6, params=\"$7\", anchor=\"$8\", onlyPath=$9, host=\"$10\", protocol=\"$11\", port=$12, prepend=\"$13\", append=\"$14\");"],
"description": "Builds and returns a string containing the opening form tag. The form's action will be built according to the same rules as URLFor. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"stripLinks": {
"prefix": "stripLinks",
"body": ["stripLinks(html=\"$1\");"],
"description": "Removes all links from an HTML string, leaving just the link text."
},
"stripLinks (long)": {
"prefix": "stripLinks long",
"body": ["stripLinks(html=\"$1\");"],
"description": "Removes all links from an HTML string, leaving just the link text."
},
"stripTags": {
"prefix": "stripTags",
"body": ["stripTags(html=\"$1\");"],
"description": "Removes all HTML tags from a string."
},
"stripTags (long)": {
"prefix": "stripTags long",
"body": ["stripTags(html=\"$1\");"],
"description": "Removes all HTML tags from a string."
},
"styleSheetLinkTag": {
"prefix": "styleSheetLinkTag",
"body": ["styleSheetLinkTag();"],
"description": "Returns a link tag for a stylesheet (or several) based on the supplied arguments."
},
"styleSheetLinkTag (long)": {
"prefix": "styleSheetLinkTag long",
"body": ["styleSheetLinkTag(sources=\"$1\", type=\"$2\", media=\"$3\", head=\"$4\", delim=\"$5\");"],
"description": "Returns a link tag for a stylesheet (or several) based on the supplied arguments."
},
"submitTag": {
"prefix": "submitTag",
"body": ["submitTag();"],
"description": "Builds and returns a string containing a submit button form control. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"submitTag (long)": {
"prefix": "submitTag long",
"body": ["submitTag(value=\"$1\", image=\"$2\", prepend=\"$3\", append=\"$4\");"],
"description": "Builds and returns a string containing a submit button form control. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"sum": {
"prefix": "sum",
"body": ["sum(property=\"$1\");"],
"description": "Calculates the sum of values for a given property. Uses the SQL function SUM. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"sum (long)": {
"prefix": "sum long",
"body": ["sum(property=\"$1\", where=\"$2\", include=\"$3\", distinct=$4, parameterize=$5, ifNull=$6, includeSoftDeletes=$7, group=\"$8\");"],
"description": "Calculates the sum of values for a given property. Uses the SQL function SUM. If no records can be found to perform the calculation on you can use the ifNull argument to decide what should be returned."
},
"table": {
"prefix": "table",
"body": ["table(name=$1);"],
"description": "Use this method to tell Wheels what database table to connect to for this model. You only need to use this method when your table naming does not follow the standard Wheels convention of a singular object name mapping to a plural table name. To not use a table for your model at all, call table(false)."
},
"table (long)": {
"prefix": "table long",
"body": ["table(name=$1);"],
"description": "Use this method to tell Wheels what database table to connect to for this model. You only need to use this method when your table naming does not follow the standard Wheels convention of a singular object name mapping to a plural table name. To not use a table for your model at all, call table(false)."
},
"tableName": {
"prefix": "tableName",
"body": ["tableName();"],
"description": "Returns the name of the database table that this model is mapped to."
},
"tableName (long)": {
"prefix": "tableName long",
"body": ["tableName();"],
"description": "Returns the name of the database table that this model is mapped to."
},
"textArea": {
"prefix": "textArea",
"body": ["textArea(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a text area field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textArea (long)": {
"prefix": "textArea long",
"body": ["textArea(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", errorElement=\"$11\", errorClass=\"$12\");"],
"description": "Builds and returns a string containing a text area field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textAreaTag": {
"prefix": "textAreaTag",
"body": ["textAreaTag(name=\"$1\");"],
"description": "Builds and returns a string containing a text area form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textAreaTag (long)": {
"prefix": "textAreaTag long",
"body": ["textAreaTag(name=\"$1\", content=\"$2\", label=\"$3\", labelPlacement=\"$4\", prepend=\"$5\", append=\"$6\", prependToLabel=\"$7\", appendToLabel=\"$8\");"],
"description": "Builds and returns a string containing a text area form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textField": {
"prefix": "textField",
"body": ["textField(objectName=$1, property=\"$2\");"],
"description": "Builds and returns a string containing a text field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textField (long)": {
"prefix": "textField long",
"body": ["textField(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", label=\"$5\", labelPlacement=\"$6\", prepend=\"$7\", append=\"$8\", prependToLabel=\"$9\", appendToLabel=\"$10\", errorElement=\"$11\", errorClass=\"$12\", type=\"$13\");"],
"description": "Builds and returns a string containing a text field form control based on the supplied objectName and property. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textFieldTag": {
"prefix": "textFieldTag",
"body": ["textFieldTag(name=\"$1\");"],
"description": "Builds and returns a string containing a text field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"textFieldTag (long)": {
"prefix": "textFieldTag long",
"body": ["textFieldTag(name=\"$1\", value=\"$2\", label=\"$3\", labelPlacement=\"$4\", prepend=\"$5\", append=\"$6\", prependToLabel=\"$7\", appendToLabel=\"$8\", type=\"$9\");"],
"description": "Builds and returns a string containing a text field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes."
},
"timeAgoInWords": {
"prefix": "timeAgoInWords",
"body": ["timeAgoInWords(fromTime=$1);"],
"description": "Returns a string describing the approximate time difference between the date passed in and the current date."
},
"timeAgoInWords (long)": {
"prefix": "timeAgoInWords long",
"body": ["timeAgoInWords(fromTime=$1, includeSeconds=$2, toTime=$3);"],
"description": "Returns a string describing the approximate time difference between the date passed in and the current date."
},
"timeSelect": {
"prefix": "timeSelect",
"body": ["timeSelect();"],
"description": "Builds and returns a string containing three select form controls for hour, minute, and second based on the supplied objectName and property."
},
"timeSelect (long)": {
"prefix": "timeSelect long",
"body": ["timeSelect(objectName=$1, property=\"$2\", association=\"$3\", position=\"$4\", order=\"$5\", separator=\"$6\", minuteStep=$7, secondStep=$8, includeBlank=$9, label=\"$10\", labelPlacement=\"$11\", prepend=\"$12\", append=\"$13\", prependToLabel=\"$14\", appendToLabel=\"$15\", errorElement=\"$16\", errorClass=\"$17\", combine=$18, twelveHour=$19);"],
"description": "Builds and returns a string containing three select form controls for hour, minute, and second based on the supplied objectName and property."
},
"timeSelectTags": {
"prefix": "timeSelectTags",
"body": ["timeSelectTags(name=\"$1\");"],
"description": "Builds and returns a string containing three select form controls for hour, minute, and second based on name."
},
"timeSelectTags (long)": {
"prefix": "timeSelectTags long",
"body": ["timeSelectTags(name=\"$1\", selected=\"$2\", order=\"$3\", separator=\"$4\", minuteStep=$5, secondStep=$6, includeBlank=$7, label=\"$8\", labelPlacement=\"$9\", prepend=\"$10\", append=\"$11\", prependToLabel=\"$12\", appendToLabel=\"$13\", combine=$14, twelveHour=$15);"],
"description": "Builds and returns a string containing three select form controls for hour, minute, and second based on name."
},
"timeUntilInWords": {
"prefix": "timeUntilInWords",
"body": ["timeUntilInWords(toTime=$1);"],
"description": "Returns a string describing the approximate time difference between the current date and the date passed in."
},
"timeUntilInWords (long)": {
"prefix": "timeUntilInWords long",
"body": ["timeUntilInWords(toTime=$1, includeSeconds=$2, fromTime=$3);"],
"description": "Returns a string describing the approximate time difference between the current date and the date passed in."
},
"titleize": {
"prefix": "titleize",
"body": ["titleize(word=\"$1\");"],
"description": "Capitalizes all words in the text to create a nicer looking title."
},
"titleize (long)": {
"prefix": "titleize long",
"body": ["titleize(word=\"$1\");"],
"description": "Capitalizes all words in the text to create a nicer looking title."
},
"toggle": {
"prefix": "toggle",
"body": ["toggle(property=\"$1\");"],
"description": "Assigns to the property specified the opposite of the property's current boolean value. Throws an error if the property cannot be converted to a boolean value. Returns this object if save called internally is false."
},
"toggle (long)": {
"prefix": "toggle long",
"body": ["toggle(property=\"$1\", save=$2);"],
"description": "Assigns to the property specified the opposite of the property's current boolean value. Throws an error if the property cannot be converted to a boolean value. Returns this object if save called internally is false."
},
"toXHTML": {
"prefix": "toXHTML",
"body": ["toXHTML(text=\"$1\");"],
"description": "Returns an XHTML-compliant string."
},
"toXHTML (long)": {
"prefix": "toXHTML long",
"body": ["toXHTML(text=\"$1\");"],
"description": "Returns an XHTML-compliant string."
},
"truncate": {
"prefix": "truncate",
"body": ["truncate(text=\"$1\");"],
"description": "Truncates text to the specified length and replaces the last characters with the specified truncate string (which defaults to \"...\")."
},
"truncate (long)": {
"prefix": "truncate long",
"body": ["truncate(text=\"$1\", length=$2, truncateString=\"$3\");"],
"description": "Truncates text to the specified length and replaces the last characters with the specified truncate string (which defaults to \"...\")."
},
"update": {
"prefix": "update",
"body": ["update();"],
"description": "Updates the object with the supplied properties and saves it to the database. Returns true if the object was saved successfully to the database and false otherwise."
},
"update (long)": {
"prefix": "update long",
"body": ["update(properties=$1, parameterize=$2, reload=$3, validate=$4, transaction=\"$5\", callbacks=$6);"],
"description": "Updates the object with the supplied properties and saves it to the database. Returns true if the object was saved successfully to the database and false otherwise."
},
"updateAll": {
"prefix": "updateAll",
"body": ["updateAll();"],
"description": "Updates all properties for the records that match the where argument. Property names and values can be passed in either using named arguments or as a struct to the properties argument. By default, objects will not be instantiated and therefore callbacks and validations are not invoked. You can change this behavior by passing in instantiate=true. This method returns the number of records that were updated."
},
"updateAll (long)": {
"prefix": "updateAll long",
"body": ["updateAll(where=\"$1\", include=\"$2\", properties=$3, reload=$4, parameterize=$5, instantiate=$6, validate=$7, transaction=\"$8\", callbacks=$9, includeSoftDeletes=$10);"],
"description": "Updates all properties for the records that match the where argument. Property names and values can be passed in either using named arguments or as a struct to the properties argument. By default, objects will not be instantiated and therefore callbacks and validations are not invoked. You can change this behavior by passing in instantiate=true. This method returns the number of records that were updated."
},
"updateByKey": {
"prefix": "updateByKey",
"body": ["updateByKey(key=$1);"],
"description": "Finds the object with the supplied key and saves it (if validation permits it) with the supplied properties and/or named arguments. Property names and values can be passed in either using named arguments or as a struct to the properties argument. Returns true if the object was found and updated successfully, false otherwise."
},
"updateByKey (long)": {
"prefix": "updateByKey long",
"body": ["updateByKey(key=$1, properties=$2, reload=$3, validate=$4, transaction=\"$5\", callbacks=$6, includeSoftDeletes=$7);"],
"description": "Finds the object with the supplied key and saves it (if validation permits it) with the supplied properties and/or named arguments. Property names and values can be passed in either using named arguments or as a struct to the properties argument. Returns true if the object was found and updated successfully, false otherwise."
},
"updateOne": {
"prefix": "updateOne",
"body": ["updateOne();"],
"description": "Gets an object based on the arguments used and updates it with the supplied properties. Returns true if an object was found and updated successfully, false otherwise."
},
"updateOne (long)": {
"prefix": "updateOne long",
"body": ["updateOne(where=\"$1\", order=\"$2\", properties=$3, reload=$4, validate=$5, transaction=\"$6\", callbacks=$7, includeSoftDeletes=$8);"],
"description": "Gets an object based on the arguments used and updates it with the supplied properties. Returns true if an object was found and updated successfully, false otherwise."
},
"updateProperty": {
"prefix": "updateProperty",
"body": ["updateProperty();"],
"description": "Updates a single property and saves the record without going through the normal validation procedure. This is especially useful for boolean flags on existing records."
},
"updateProperty (long)": {
"prefix": "updateProperty long",
"body": ["updateProperty(property=\"$1\", value=$2, parameterize=$3, transaction=\"$4\", callbacks=$5);"],
"description": "Updates a single property and saves the record without going through the normal validation procedure. This is especially useful for boolean flags on existing records."
},
"URLFor": {
"prefix": "URLFor",
"body": ["URLFor();"],
"description": "Creates an internal URL based on supplied arguments."
},
"URLFor (long)": {
"prefix": "URLFor long",
"body": ["URLFor(route=\"$1\", controller=\"$2\", action=\"$3\", key=$4, params=\"$5\", anchor=\"$6\", onlyPath=$7, host=\"$8\", protocol=\"$9\", port=$10, $URLRewriting=\"$11\");"],
"description": "Creates an internal URL based on supplied arguments."
},
"usesLayout": {
"prefix": "usesLayout",
"body": ["usesLayout(template=\"$1\");"],
"description": "Used within a controller's init() function to specify controller- or action-specific layouts."
},
"usesLayout (long)": {
"prefix": "usesLayout long",
"body": ["usesLayout(template=\"$1\", ajax=\"$2\", except=\"$3\", only=\"$4\", useDefault=$5);"],
"description": "Used within a controller's init() function to specify controller- or action-specific layouts."
},
"valid": {
"prefix": "valid",
"body": ["valid();"],
"description": "Runs the validation on the object and returns true if it passes it. Wheels will run the validation process automatically whenever an object is saved to the database, but sometimes it's useful to be able to run this method to see if the object is valid without saving it to the database."
},
"valid (long)": {
"prefix": "valid long",
"body": ["valid(callbacks=$1);"],
"description": "Runs the validation on the object and returns true if it passes it. Wheels will run the validation process automatically whenever an object is saved to the database, but sometimes it's useful to be able to run this method to see if the object is valid without saving it to the database."
},
"validate": {
"prefix": "validate",
"body": ["validate();"],
"description": "Registers method(s) that should be called to validate objects before they are saved."
},
"validate (long)": {
"prefix": "validate long",
"body": ["validate(methods=\"$1\", condition=\"$2\", unless=\"$3\", when=\"$4\");"],
"description": "Registers method(s) that should be called to validate objects before they are saved."
},
"validateOnCreate": {
"prefix": "validateOnCreate",
"body": ["validateOnCreate();"],
"description": "Registers method(s) that should be called to validate new objects before they are inserted."
},
"validateOnCreate (long)": {
"prefix": "validateOnCreate long",
"body": ["validateOnCreate(methods=\"$1\", condition=\"$2\", unless=\"$3\");"],
"description": "Registers method(s) that should be called to validate new objects before they are inserted."
},
"validateOnUpdate": {
"prefix": "validateOnUpdate",
"body": ["validateOnUpdate();"],
"description": "Registers method(s) that should be called to validate existing objects before they are updated."
},
"validateOnUpdate (long)": {
"prefix": "validateOnUpdate long",
"body": ["validateOnUpdate(methods=\"$1\", condition=\"$2\", unless=\"$3\");"],
"description": "Registers method(s) that should be called to validate existing objects before they are updated."
},
"validatesConfirmationOf": {
"prefix": "validatesConfirmationOf",
"body": ["validatesConfirmationOf();"],
"description": "Validates that the value of the specified property also has an identical confirmation value. (This is common when having a user type in their email address a second time to confirm, confirming a password by typing it a second time, etc.) The confirmation value only exists temporarily and never gets saved to the database. By convention, the confirmation property has to be named the same as the property with \"Confirmation\" appended at the end. Using the password example, to confirm our password property, we would create a property called passwordConfirmation."
},
"validatesConfirmationOf (long)": {
"prefix": "validatesConfirmationOf long",
"body": ["validatesConfirmationOf(properties=\"$1\", message=\"$2\", when=\"$3\", condition=\"$4\", unless=\"$5\");"],
"description": "Validates that the value of the specified property also has an identical confirmation value. (This is common when having a user type in their email address a second time to confirm, confirming a password by typing it a second time, etc.) The confirmation value only exists temporarily and never gets saved to the database. By convention, the confirmation property has to be named the same as the property with \"Confirmation\" appended at the end. Using the password example, to confirm our password property, we would create a property called passwordConfirmation."
},
"validatesExclusionOf": {
"prefix": "validatesExclusionOf",
"body": ["validatesExclusionOf(list=\"$2\");"],
"description": "Validates that the value of the specified property does not exist in the supplied list."
},
"validatesExclusionOf (long)": {
"prefix": "validatesExclusionOf long",
"body": ["validatesExclusionOf(properties=\"$1\", list=\"$2\", message=\"$3\", when=\"$4\", allowBlank=$5, condition=\"$6\", unless=\"$7\");"],
"description": "Validates that the value of the specified property does not exist in the supplied list."
},
"validatesFormatOf": {
"prefix": "validatesFormatOf",
"body": ["validatesFormatOf();"],
"description": "Validates that the value of the specified property is formatted correctly by matching it against a regular expression using the regEx argument and/or against a built-in CFML validation type using the type argument (creditcard, date, email, etc.)."
},
"validatesFormatOf (long)": {
"prefix": "validatesFormatOf long",
"body": ["validatesFormatOf(properties=\"$1\", regEx=\"$2\", type=\"$3\", message=\"$4\", when=\"$5\", allowBlank=$6, condition=\"$7\", unless=\"$8\");"],
"description": "Validates that the value of the specified property is formatted correctly by matching it against a regular expression using the regEx argument and/or against a built-in CFML validation type using the type argument (creditcard, date, email, etc.)."
},
"validatesInclusionOf": {
"prefix": "validatesInclusionOf",
"body": ["validatesInclusionOf(list=\"$2\");"],
"description": "Validates that the value of the specified property exists in the supplied list."
},
"validatesInclusionOf (long)": {
"prefix": "validatesInclusionOf long",
"body": ["validatesInclusionOf(properties=\"$1\", list=\"$2\", message=\"$3\", when=\"$4\", allowBlank=$5, condition=\"$6\", unless=\"$7\");"],
"description": "Validates that the value of the specified property exists in the supplied list."
},
"validatesLengthOf": {
"prefix": "validatesLengthOf",
"body": ["validatesLengthOf();"],
"description": "Validates that the value of the specified property matches the length requirements supplied. Use the exactly, maximum, minimum and within arguments to specify the length requirements."
},
"validatesLengthOf (long)": {
"prefix": "validatesLengthOf long",
"body": ["validatesLengthOf(properties=\"$1\", message=\"$2\", when=\"$3\", allowBlank=$4, exactly=$5, maximum=$6, minimum=$7, within=\"$8\", condition=\"$9\", unless=\"$10\");"],
"description": "Validates that the value of the specified property matches the length requirements supplied. Use the exactly, maximum, minimum and within arguments to specify the length requirements."
},
"validatesNumericalityOf": {
"prefix": "validatesNumericalityOf",
"body": ["validatesNumericalityOf();"],
"description": "Validates that the value of the specified property is numeric."
},
"validatesNumericalityOf (long)": {
"prefix": "validatesNumericalityOf long",
"body": ["validatesNumericalityOf(properties=\"$1\", message=\"$2\", when=\"$3\", allowBlank=$4, onlyInteger=$5, condition=\"$6\", unless=\"$7\", odd=$8, even=$9, greaterThan=$10, greaterThanOrEqualTo=$11, equalTo=$12, lessThan=$13, lessThanOrEqualTo=$14);"],
"description": "Validates that the value of the specified property is numeric."
},
"validatesPresenceOf": {
"prefix": "validatesPresenceOf",
"body": ["validatesPresenceOf();"],
"description": "Validates that the specified property exists and that its value is not blank."
},
"validatesPresenceOf (long)": {
"prefix": "validatesPresenceOf long",
"body": ["validatesPresenceOf(properties=\"$1\", message=\"$2\", when=\"$3\", condition=\"$4\", unless=\"$5\");"],
"description": "Validates that the specified property exists and that its value is not blank."
},
"validatesUniquenessOf": {
"prefix": "validatesUniquenessOf",
"body": ["validatesUniquenessOf();"],
"description": "Validates that the value of the specified property is unique in the database table. Useful for ensuring that two users can't sign up to a website with identical usernames for example. When a new record is created, a check is made to make sure that no record already exists in the database table with the given value for the specified property. When the record is updated, the same check is made but disregarding the record itself."
},
"validatesUniquenessOf (long)": {
"prefix": "validatesUniquenessOf long",
"body": ["validatesUniquenessOf(properties=\"$1\", message=\"$2\", when=\"$3\", allowBlank=$4, scope=\"$5\", condition=\"$6\", unless=\"$7\", includeSoftDeletes=$8);"],
"description": "Validates that the value of the specified property is unique in the database table. Useful for ensuring that two users can't sign up to a website with identical usernames for example. When a new record is created, a check is made to make sure that no record already exists in the database table with the given value for the specified property. When the record is updated, the same check is made but disregarding the record itself."
},
"validationTypeForProperty": {
"prefix": "validationTypeForProperty",
"body": ["validationTypeForProperty(property=\"$1\");"],
"description": "Returns the validation type for the property"
},
"validationTypeForProperty (long)": {
"prefix": "validationTypeForProperty long",
"body": ["validationTypeForProperty(property=\"$1\");"],
"description": "Returns the validation type for the property"
},
"verificationChain": {
"prefix": "verificationChain",
"body": ["verificationChain();"],
"description": "Returns an array of all the verifications set on this controller in the order in which they will be executed."
},
"verificationChain (long)": {
"prefix": "verificationChain long",
"body": ["verificationChain();"],
"description": "Returns an array of all the verifications set on this controller in the order in which they will be executed."
},
"verifies": {
"prefix": "verifies",
"body": ["verifies();"],
"description": "Instructs CFWheels to verify that some specific criterias are met before running an action. Note that all undeclared arguments will be passed to redirectTo() call if a handler is not specified."
},
"verifies (long)": {
"prefix": "verifies long",
"body": ["verifies(only=\"$1\", except=\"$2\", post=$3, get=$4, ajax=$5, cookie=\"$6\", session=\"$7\", params=\"$8\", handler=\"$9\", cookieTypes=\"$10\", sessionTypes=\"$11\", paramsTypes=\"$12\");"],
"description": "Instructs CFWheels to verify that some specific criterias are met before running an action. Note that all undeclared arguments will be passed to redirectTo() call if a handler is not specified."
},
"wildcard": {
"prefix": "wildcard",
"body": ["wildcard();"],
"description": "Special wildcard matching generates routes with `"
},
"wildcard (long)": {
"prefix": "wildcard long",
"body": ["wildcard(method=\"$1\", action=\"$2\");"],
"description": "Special wildcard matching generates routes with `"
},
"wordTruncate": {
"prefix": "wordTruncate",
"body": ["wordTruncate(text=\"$1\");"],
"description": "Truncates text to the specified length of words and replaces the remaining characters with the specified truncate string (which defaults to \"...\")."
},
"wordTruncate (long)": {
"prefix": "wordTruncate long",
"body": ["wordTruncate(text=\"$1\", length=$2, truncateString=\"$3\");"],
"description": "Truncates text to the specified length of words and replaces the remaining characters with the specified truncate string (which defaults to \"...\")."
},
"yearSelectTag": {
"prefix": "yearSelectTag",
"body": ["yearSelectTag(name=\"$1\");"],
"description": "Builds and returns a string containing a select form control for a range of years based on the supplied name."
},
"yearSelectTag (long)": {
"prefix": "yearSelectTag long",
"body": ["yearSelectTag(name=\"$1\", selected=\"$2\", startYear=$3, endYear=$4, includeBlank=$5, label=\"$6\", labelPlacement=\"$7\", prepend=\"$8\", append=\"$9\", prependToLabel=\"$10\", appendToLabel=\"$11\", $now=$12);"],
"description": "Builds and returns a string containing a select form control for a range of years based on the supplied name."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment