32
CFML Quick Reference
Gateway interface
Methods to implement
GatewayName
([String
id
[, String
configFile
]])
String getGatewayID()
GatewayHelper getHelper()
int getStatus()
String outgoingMessage(coldfusion.
eventgateway.CFEvent
cfmessage
)
void restart()
void setCFCListeners(String[]
listeners
)
void setGatewayID(String
id
)
void start()
void stop()
IM Gateway CFC incoming message methods
onAddBuddyRequest
onAddBuddyRequest(CFEvent)
onAddBuddyResponse
onAddBuddyResponse(CFEvent)
onBuddyStatus
onBuddyStatus(CFEvent)
onIMServerMessage
onIMServerMessage(CFEvent)
onIncomingMessage
onIncomingMessage(CFEvent)
IM Gateway message sending commands
submit
accept
decline
noact
Application.cfc
Methods to implement
onApplicationEnd
onApplicationStart
onError
onRequest
onRequestEnd
onRequestStart
onSessionEnd
onSessionStart
ColdFusion variables
ColdFusion MX returns variables, such as those returned in a
cfdirectory
or
cfftp
operation. A variable is usually
referenced by
scoping
it according to its type: naming it
according to the code context in which it is available; for
example, Session.varname, or Application.varname.
You use the
cflock
tag to limit the scope of CFML
constructs that modify shared data structures, files, and
CFXs, to ensure that modifications occur sequentially. For
more information, see
ColdFusion MX Developer’s Guide
.
Variable scope
ColdFusion MX supports the Variables scope. Unscoped
variables created with the
cfset
tag acquire the Variables
scope by default. For example, the variable created by the
statement
<CFSET linguist = Chomsky>
can be referenced
as
#Variables.linguist#
.
Содержание COLFUSION MX 7-CFML
Страница 1: ...COLDFUSION MX7 CFML Quick Reference...