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:
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">
|