Getmetadata - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

GetMetaData

Description
Gets metadata (the methods, properties, and parameters of a component) associated with an
object that is deployed on the ColdFusion server. This functionality, called introspection, lets
applications dynamically determine how to use a component.
Returns
Key-value pairs, as a component descriptor data structure or as structured XML
Category
System functions
Function syntax
GetMetaData(object)
or, if used within a ColdFusion component:
GetMetaData(this)
History
ColdFusion MX: Added this function.
Parameters
Parameter
Description
object
Reference to an object; use this attribute to call a function from a CFML page
this
Reference to an object; use this attribute to call a function from a component.
Usage
The
scope is available at runtime to the component body and to the invoked method's
this
function body. It is used to read and write variables that are present during the life of the
component.
Component metadata contains at least the following keys:
: the component name
name
: an absolute path to the component
path
: ancestor component metadata
extends
: an array of metadata for each component function
functions
Other component attributes are returned as additional keys.
Function metadata contains at least the following keys:
: the function name
name
: an array of argument metadata
parameters
Other function attributes are returned as additional keys.
Argument metadata
: the argument name
name
Other argument attributes are returned as additional keys.
contains at least the following key:
GetMetaData
497

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents