MACROMEDIA COLDFUSION MX 61-CFML Reference page 147

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

Attribute
Req/Opt
roles
Optional
access
Optional
output
Optional
displayname Optional
hint
Optional
Usage
The
tag can define a function that you call in the same manner as a ColdFusion built
cffunction
in function.
To define a ColdFusion component (CFC) method, you must use a
information on using the
The following example shows
ColdFusion Query object.
<cffunction
name="getEmployees"
Default
Description
"" (empty)
A comma-delimited list of ColdFusion security roles that
can invoke the method. Only users who are logged in
with the specified roles can execute the function. If this
attribute is omitted, all users can invoke the method.
public
The client security context from which the method can
be invoked:
• private: available only to the component that declares
the method and any components that extend the
component in which it is defined
• package: available only to the component that
declares the method, components that extend the
component, or any other components in the package
• public: available to a locally executing page or
component method
• remote: available to a locally or remotely executing
page or component method, or a remote client
through a URL, Flash, or a web service. To publish the
function as a web service, this option is required.
Function
Specifies under which conditions the function can
body is
generate HTML output.
processed
• yes: The entire function body is processed as if it were
as standard
within a
CFML
number signs (#) are automatically replaced with their
values.
• no: The function is processed as if it were within a
cfsilent
• If you do not specify this attribute, the function body is
processed as standard CFML. Any variables must be
in
cfoutput
Meaningful only for CFC method parameters. A value to
be displayed in parentheses following the function name
when using introspection to show information about the
CFC.
Meaningful only for CFC method parameters. Text to be
displayed when using introspection to show information
about the CFC. The
syntax line in the function description.
tag.
cffunction
tag attributes for a simple CFC method that returns a
cffunction
tag. Variables names surrounded by
cfoutput
tag
tags.
attribute value follows the
hint
cffunction
tag. For
cffunction
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents