Site.cancheckout(), Site.cancloak() – Adobe Dreamweaver API Reference CS5 User Manual
Page 526

521
DREAMWEAVER API REFERENCE
Enablers
Last updated 8/27/2013
Returns
A Boolean value:
true
if the following conditions are true;
false
otherwise:
•
A remote site has been defined.
•
If a document window has focus, the file has been saved in a local site; or, if the Site panel has focus, one or more
files or folders are selected.
•
The Check In/Check Out feature is turned on for the site.
site.canCheckOut()
Availability
Dreamweaver 3.
Description
Determines whether Dreamweaver can perform a Check Out operation on the specified file or files.
Arguments
siteOrURL
•
The siteOrURL argument must be the
site
keyword, which indicates that the function should act on the selection
in the Site panel or the URL for a single file.
Returns
A Boolean value:
true
if all the following conditions are true;
false
otherwise:
•
A remote site has been defined.
•
If a document window has focus, the file is part of a local site and is not already checked out; or, if the Site panel has
focus, one or more files or folders are selected and at least one of the selected files is not already checked out.
•
The Check In/Check Out feature is turned on for the site.
site.canCloak()
Availability
Dreamweaver MX.
Description
Determines whether Dreamweaver can perform a Cloaking operation.
Arguments
siteOrURL
•
The siteOrURL argument must be the
site
keyword, which indicates that the
canCloak()
function should act on
the selection in the Site panel or the URL of a particular folder, which indicates that the
canCloak()
function
should act on the specified folder and all its contents.