cfoRegisterClass
Summary:
Used internally by cfoCreateObject to cache class definition information.
Stores class information, including class name, direct library path, and superclass
information in a collection of structures named "application.cfoClassRegistry".
This tag should not be called directly.
Classes are defined by special files named class.cfm. Each class must have
a class.cfm file that names the class name and it's superclass. cfoRegisterClass will
search for this file by traversing the libPath defined by cfoInit.
A typical class.cfm file have the following format:
<cfscript>
stClassDef = structNew();
stClassDef.superClass = "Person";
</cfscript>
Attributes:
| Attribute |
Description |
Default |
Required |
| CLASS |
The name of the class to register. |
|
Yes |
| PACKAGE |
The name of a package if the class definition is located within a package. |
|
No |
| RELOADCLASS |
Boolean value that can be used to force a re-load if the class is already registered. |
"No" |
No |
Examples:
<cf_cfoRegisterClass class="Person.Customer" reloadClass="Yes">
|