256
Reports
The Reports API
The only required function for the Reports API is the
processFile()
function. All other
functions are optional.
processFile()
Availability
Dreamweaver 4.
Description
This function is called when there is a file to process. The Report command should process
the file without modifying it and use the
dw.ResultsPalette.SiteReports()
function, the
addResultItem()
function, or the
resWin.addItem()
function to return information about
the file. Dreamweaver automatically releases each file’s DOM when it finishes.
Arguments
strFilePath
■
The
strFilePath
argument is the full path and filename of the file to process.
Returns
Dreamweaver expects nothing.
beginReporting()
Availability
Dreamweaver 4.
Description
This function is called at the start of the reporting process, before any reports are run. If the
Report command returns a
false
value from this function, the Report command is excluded
from the report run.
Arguments
target
■
The
target
argument is a string that indicates the target of the report session. It can be
one of the following values:
"CurrentDoc"
,
"CurrentSite"
,
"CurrentSiteSelection"
(for the selected files in a site), or
"Folder:
+
the path to the folder the user
selected"
(for example,
"Folder:c:temp"
).
Содержание DREAMWEAVER 8-EXTENDING DREAMWEAVER
Страница 1: ...Extending Dreamweaver...
Страница 8: ...8 Contents...
Страница 14: ...14 Introduction...
Страница 16: ......
Страница 54: ...54 Customizing Dreamweaver...
Страница 96: ...96 Customizing Code View...
Страница 98: ......
Страница 110: ...110 Extending Dreamweaver...
Страница 138: ......
Страница 166: ...166 Insert Bar Objects...
Страница 180: ...180 Commands...
Страница 248: ...248 Toolbars...
Страница 260: ...260 Reports...
Страница 278: ...278 Tag Libraries and Editors...
Страница 288: ...288 Property Inspectors...
Страница 378: ...378 Server Behaviors...
Страница 398: ...398 Data Sources...
Страница 432: ...432 Server Models...
Страница 456: ...456 Data Translators...
Страница 482: ......
Страница 492: ...492 The Shared Folder...