cfcomponent

From CEW

Jump to: navigation, search

[edit] implements

Allows you to implement abstract and interface components. Accepts a comma-delimited list of component names.

Supported by: Image:BlueDragon-7.0.png

[edit] type

The type attribute allows you to define the type of the component.

<cfcomponent type="abstract"> - an abstract class is similar to an interface, it allows you to specify functions which must be implemented by any component extending it, but it may also specify some default behaviours. An abstract component can only be used as a base component, it cannot be invoked/created directly.

<cfcomponent type="interface"> - an interface allows you to specify functions which must be implemented in any component implementing the interface component. An interface component can only be implemented, it cannot be invoked/created directly.

Supported by: Image:BlueDragon-7.0.png

Personal tools