background image

10

 CFML Quick Reference

cfreport

<cfreport report = "report_path"

orderBy = "result_order"
username = "username"
password = "password"
formula = "formula">

</cfreport>

cfrethrow

<cfrethrow>

cfsavecontent

<cfsavecontent variable = "variable name">

content

</cfsavecontent>

cfschedule

<cfschedule action = "update"

task = "taskname"
operation = "HTTPRequest"
file = "filename"
path = "path_to_file"
startDate = "date"
startTime = "time"
url = "URL"
publish = "Yes" or "No"
endDate = "date"
endTime = "time"
interval = "seconds"
requestTimeOut = "seconds"
username = "username"
password = "password"
resolveURL = "Yes" or "No"
proxyServer = "hostname"
port = "port_number"
proxyPort = "port_number">

<cfschedule action = "delete" task = "TaskName">
<cfschedule action = "Run" task = "TaskName">

cfscript

<cfscript> 
 cfscript code goes here 
</cfscript>

cfsearch

<cfsearch name = "search_name"

collection = "collection_name"
type = "criteria"
criteria = "search_expression"
maxRows = "number"
startRow = "row_number"
external = "Yes" or "No"
language = "language">

cfselect

<cfselect name = "name"

required = "Yes" or "No"
message = "text"
onError = "text"
size = "integer"
multiple = "Yes" or "No"
query = "queryname"
selected = "column_value"
value = "text"
display = "text"
passThrough = "HTML_attributes">

</cfselect>

cfservlet

<cfservlet code = "class name of servlet"

jrunProxy = "proxy server"
timeout = "timeout in seconds"
writeOutput = "Yes" or "No"
debug = "Yes" or "No">

<cfservletparam name = "parameter name" 

value = "value"> 

...

</cfservlet>

Содержание COLDFUSION 5-CFML

Страница 1: ...t of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical recording or otherwise without the prior written permission of Mac...

Страница 2: ......

Страница 3: ...s 19 Other functions 19 ColdFusion Variables 20 Variable scope 20 Client variables 20 Server variables 20 Application and session variables 20 Custom tag variables 21 Request variable 21 Form variable...

Страница 4: ...LQuickReference CFSERVLET variables 26 Standard CGI Variables 27 Request 27 Server 27 Client 27 ColdFusion Studio Keyboard Shortcuts 28 File and document keyboard shortcuts 28 Debugger Keyboard Shortc...

Страница 5: ...te cfassociate baseTag base_tag_name dataCollection collection_name cfauthenticate cfauthenticate securityContext security_context username user_ID password password setCookie Yes or No throwOnFailure...

Страница 6: ...field destination full_path_name nameConflict behavior accept mime_type file_type mode permission attributes file_attributes cffile action move source full_path_name destination full_path_name attribu...

Страница 7: ...URLColumn query column showValueLabel yes no or rollover valueLabelFont Arial Courier or Times valueLabelSize number of points valueLocation onBar or overBar scaleFrom integer minimum value scaleTo i...

Страница 8: ...ial Courier or Times fileFormat Flash gif or jpg graphHeight integer number of pixels graphWidth integer number of pixels backgroundColor Web color borderColor Web color borderWidth integer number of...

Страница 9: ...URL_target select Yes or No display Yes or No type type headerFont font_name headerFontSize size headerItalic Yes or No headerBold Yes or No colHeaderTextColor Web color dataAlign position headerAlign...

Страница 10: ...se expression HTML and CFML tags cfif cfimpersonate cfimpersonate securityContext SecurityContext username Name password Password type CF or OS HTML or CFML code to execute cfimpersonate cfinclude cfi...

Страница 11: ...w_number modifyType REPLACE or ADD or delete rebind Yes or No referral number_of_allowed_hops secure multi_field_security_string separator separator_character delimiter delimiter_character cflocation...

Страница 12: ...g_name attributeCollection collection_structure attribute_name1 value attribute_name2 value cfobject cfobject type COM action action class program_ID name text context context server server_name cfobj...

Страница 13: ...xRows number blockFactor blocksize timeout milliseconds cachedAfter date cachedWithin timespan provider COMProvider providerDSN datasource debug SQL statements cfquery cfqueryparam cfquery name query_...

Страница 14: ...e port port_number proxyPort port_number cfschedule action delete task TaskName cfschedule action Run task TaskName cfscript cfscript cfscript code goes here cfscript cfsearch cfsearch name search_nam...

Страница 15: ...pace integer hSpace integer align alignment tickMarkMajor Yes or No tickMarkMinor Yes or No tickMarkImages URL1 URL2 URLn tickMarkLabels Yes or No or list lookAndFeel motif or windows or metal vertica...

Страница 16: ...w cfthrow type exception_type message message detail detail_description errorCode error_code extendedInfo additional_information cftransaction cftransaction action begin or commit or rollback isolatio...

Страница 17: ...ere cftry cfupdate cfupdate dataSource ds_name dbType type dbServer dbms dbName database name connectString connection string tableName table_name tableOwner name tableQualifier qualifier username use...

Страница 18: ...henticatedUser IsAuthenticated security context name IsAuthorized resourcetype resourcename action Conversion functions Hash string ToBase64 string or binary_object ToBinary string_in_Base64 or binary...

Страница 19: ...IsAuthenticated security context name IsAuthorized resourcetype resourcename action FileExists absolute_path IsBinary value IsBoolean value IsCustomFunction name IsDate string IsDebugMode IsDefined v...

Страница 20: ...date time string LSParseEuroCurrency currency string LSParseNumber string LSTimeFormat time mask SetLocale new_locale List Functions ArrayToList array delimiter ListAppend list value delimiters ListC...

Страница 21: ...umber Log number Log10 number Max number1 number2 Min number1 number2 Pi Rand Randomize number RandRange number1 number2 Round number Sgn number Sin number Sqr number Tan number Query functions IsQuer...

Страница 22: ...expressions RemoveChars string start count RepeatString string count Replace string substring1 substring2 scope ReplaceList string list1 list2 ReplaceNoCase string substrng1 substrng2 scope REReplace...

Страница 23: ...ction entry GetTempDirectory GetTempFile dir prefix GetTemplatePath SetProfileString iniPath section entry value Other functions CreateObject COM class context serverName CreateObject CORBA class cont...

Страница 24: ...tCount Client LastVisit Client TimeCreated Client URLToken Server variables Use the Server prefix to reference server variables Server ColdFusion ProductName Server ColdFusion ProductVersion Server Co...

Страница 25: ...store data that pertains to the processing of a single page request Request variables allow you to store data in a structure that can be passed to nested tags such as Custom Tags and processed once S...

Страница 26: ...H CFSERVLET CFSTOREDPROC ColdFusion query variables Any ColdFusion tag that returns a query object supports the following variables queryname CurrentRow queryname RecordCount queryname ColumnList Wher...

Страница 27: ...GeneratedContent Error RemoteAddress Error HTTPReferer Error Template Error QueryString The following error variables are available if you have speci fied TYPE Validation Error ValidationHeader Error...

Страница 28: ...ritten CFFILE FileWasRenamed CFFILE FileWasSaved CFFILE OldFileSize CFFILE ServerDirectory CFFILE ServerFile CFFILE ServerFileExt CFFILE ServerFileName CFFILE TimeCreated CFFILE TimeLastModified CFFTP...

Страница 29: ...e or file depending on the MIME type CFHTTP FileContent CFHTTP MimeType CFHTTP Header CFHTTP ResponseHeader http_hd_key CFHTTP StatusCode CFLDAP variables CFLDAP returns information about the LDAP que...

Страница 30: ...ry queryname Type queryname Value CFSEARCH variables Every CFSEARCH operation returns the following variables Searchname is the value of the NAME attribute used in the CFSEARCH operation searchname UR...

Страница 31: ...GI CONTENT_LENGTH CGI CONTENT_TYPE CGI PATH_INFO CGI PATH_TRANSLATED CGI QUERY_STRING CGI REMOTE_ADDR CGI REMOTE_HOST CGI REMOTE_USER CGI REQUEST_METHOD CGI SCRIPT_NAME Server CGI GATEWAY_INTERFACE CG...

Страница 32: ...ment Shortcuts Command Key File Open Ctrl O File Save Ctrl S File Save As Shift Ctrl S File Close Ctrl W File Close All Shift Ctrl W File Print Ctrl P Open default template CTRL N Insert Code Template...

Страница 33: ...s Expression Builder Shift Ctrl E Tools Spell Check F7 Tools Spell Check All Shift F7 Tools Mark Spelling Errors Ctrl F7 Tools Validate Document Shift F6 Tools Validate Current Tag F6 Open Development...

Страница 34: ...g Tip for current tag Esc to close F2 Tags Edit Current Tag Ctrl F4 Tags Inspect Current Tag F4 Insert Underline tag Ctrl U Insert pound sign CTRL 3 View Full Screen F10 View QuickBar Ctrl H View Reso...

Страница 35: ...art Continue Ctrl F5 Start No debugging Ctrl Alt F5 End Alt F5 Restart Ctrl Shift F5 Step Into Ctrl F8 Step Over Ctrl F9 Run To Cursor Ctrl F11 Variables Alt Q Watches Alt W Recordsets Alt R Stack Alt...

Страница 36: ...32 CFML Quick Reference...

Отзывы: