MACROMEDIA COLDFUSION 5-CFML Instalační příručka Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 44
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
<CFFILE ACTION=”delete” FILE=”C:\Inetpub\wwwroot\images\a.jpg”>
<CFFILE ACTION=”delete” FILE=”/images/a.jpg” URIDIRECTORY=”Yes”>
Specifying file attributes as relative URI paths improves the portability of CFML pages
by eliminating web server and operating system specific physical path specifications.
Note in the above example that the first tag is not portable to a Linux running Apache,
but the second one is.
The optional
URIDirectory attribute accepts the values “Yes” and “No”; the default
value is “No”.
4.5 New CFML Tags
This section lists new CFML tags that are unique to BlueDragon.
4.5.1 CFASSERT
CFASSERT is a new CFML tag introduced by BlueDragon that can be used as a testing
tool to enhance the reliability and robustness of your applications. The concept of using
assertions is frequently found in more advanced languages, and it’s critical to effective
unit-testing of your applications. Complete discussion of the benefits and uses of asser-
tions is beyond the scope of this manual, but a brief explanation follows.
CFASSERT (and its corresponding assert() function discussed in Section 5.4.1) takes an
expression that is expected to evaluate to a Boolean result (true or false). It throws an
exception if the result is false but does nothing if the result is true. They are also ignored
if assertions have not been enabled in the BlueDragon admin console, as discussed at the
end of this section. The intention is that you can place these assertions in your code to
help ensure that some expected state of the application is indeed occurring as expected.
More accurately, they cause failure if the state is not as expected.
A typical use is during testing, when you expect that a given variable will have a given
value (or perhaps a range of values), perhaps after calling a custom tag, UDF, or CFC
method. Another example is when you want to test the mere existence of a given variable
(such as an expected session or application variable).
The difference between this and using a
CFIF is that the CFIF is intended to control the
flow of the logic, executing code depending on a condition. An assertion test is intended
to simply throw an error is the expected condition is not true. The
CFIF test handles
expected conditions, while the assertion flags unexpected conditions.
It could be surrounded by a
CFTRY to catch and handle the error that will be thrown, or
the error can be allowed to pass up to the caller of the code throwing the exception. It
could also be left to be handled by any
CFERROR or site-wide error handler, or if unhan-
dled will simply result in a BlueDragon runtime error. (There is a body of opinion in the
industry that suggests that assertion failures should not be caught at runtime, or at least
ought not be used to alter the flow of processing and allow execution to continue. These
proponents expect that an assertion failure should result in a cease of processing.)
BlueDragon 6.1 CFML Compatibility and Reference Guide 23
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 43 44

Komentáře k této Příručce

Žádné komentáře

Whirlpool LOE 6056 IG Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Waschmaschinen Whirlpool LOE 6056 IG.
Wir stellen 1 PDF-Handbücher Whirlpool LOE 6056 IG zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Waschmaschinen Whirlpool

Modelle Dokumententyp
AVXL 105 (TK) Bedienungsanleitung    Whirlpool AVXL 105 (TK) Instruction for Use, 24 Seiten
ADG 7643/1 A++ Bedienungsanleitung   Whirlpool ADG 7643/1 A++ Instruction for Use, 8 Seiten
WITP 82 (EU) Bedienungsanleitung      Whirlpool WITP 82 (EU) Instruction for Use [en] , 72 Seiten
WP 64 IX Bedienungsanleitung   Whirlpool WP 64 IX Instruction for Use, 8 Seiten
AQ7F 293 U (EU) Bedienungsanleitung         Whirlpool AQ7F 293 U (EU) Instruction for Use [es] , 84 Seiten
AVL 62 (EU) Bedienungsanleitung      Whirlpool AVL 62 (EU) Instruction for Use, 72 Seiten
FL 5120/A Bedienungsanleitung   Whirlpool FL 5120/A Instruction for Use [da] , 17 Seiten
AQ83F 29C TK Bedienungsanleitung    Whirlpool AQ83F 29C TK Instruction for Use, 24 Seiten
WWDE 7512 Gebrauchs- und Pflegeanleitung   Whirlpool WWDE 7512 Use and care guide [fr] , 38 Seiten
EWD 71051 W EU Bedienungsanleitung       Whirlpool EWD 71051 W EU Instruction for Use, 84 Seiten
TRK 5970 Bedienungsanleitung   Whirlpool TRK 4820 Instruction for Use [es] [it] , 10 Seiten
WWDE 7512 Betriebsanweisung   Whirlpool WWDE 7512 Setup and user guide, 8 Seiten
WDD 756P UK Bedienungsanleitung   Whirlpool WDD 756P UK Instruction for Use, 16 Seiten
XWC 61051 W EU Bedienungsanleitung        Whirlpool XWC 61051 W EU Instruction for Use [sv] , 72 Seiten
AVG 16 (TK) Bedienungsanleitung    Whirlpool AVG 16 (TK) Instruction for Use [fr] , 24 Seiten
FMDN 723B CZ Bedienungsanleitung     Whirlpool FMDN 723B CZ Instruction for Use, 72 Seiten
MFW108EDWT MM Bedienungsanleitung   Whirlpool MFW108EDWT MM Instruction for Use, 2 Seiten
WWDC 8614 Bedienungsanleitung    Whirlpool WWDC 8614 Instruction for Use, 16 Seiten
FSCR12420 Betriebsanweisung   Whirlpool FSCR12420 Setup and user guide [pl] , 8 Seiten
FMG 723B CZ Bedienungsanleitung     Whirlpool FMG 723B CZ Instruction for Use, 48 Seiten