Getting Started

Tag Reference

Object Reference
asHiddenFields
asURLString
asXML
collectFields
collectFieldsFrom..
copy
dump
empty
erase
loadFromCookie
storeToCookie

Case Study

Download

Mailing List

Other Links

Object::empty

Summary:

This method will delete all or some of the attributes of the object. Uses structDelete to remove keys from the object instance.

Parameters:

Parameter Description Default Required
include Comma-separated list of attributes to include. If not list is provided, then all attributes are deleted.   No
exclude Comma-separated list of attributes to exclude. If not list is provided, then all attributes are deleted.   No

Returns:
Name Value
n/a

Example:
<!--- this example deletes all fields --->
<cf_cfoInvokeMethod method="aPerson.empty">

<!--- this example deletes only firstName and LastName --->
<cf_cfoInvokeMethod method="aPerson.empty" include="firstName,lastName">

<!--- this example deletes all except dateOfBirth --->
<cf_cfoInvokeMethod method="aPerson.empty" exclude="dateOfBirth">










SourceForge.net Logo