TestSiteOutputAvailability (open)
Test a site output availability
Syntax
LOADLIB "mod::publisher/lib/siteapi.whlib";
RECORD FUNCTION TestSiteOutputAvailability(INTEGER forsiteid, INTEGER newoutputweb, STRING newoutputfolder)Parameters
INTEGER forsiteidSite id for which we are testing (set to 0 if the site is not created yet)
INTEGER newoutputwebNew output webserver
STRING newoutputfolderOutputfolder within the new webserver
Return value
RECORDSite output availability test result
RECORD ARRAY neededfoldersForeign folders that need to be in place to create the requested output
INTEGER neededfolders.idId of the object that is in the way. If 0, no object is in the way but the foreign folder must be created
INTEGER neededfolders.nameName of the needed foreign folder
INTEGER neededfolders.parentParent folder in which the foreign folder should exist
INTEGER neededfolders.siteId of site that requires this folder. 0 if it's the site for which primaryoutput is called that needs the folder
STRING outputfolderThe output folder used in testing (we may fix/update it)
INTEGER sitecontaininglocationIf not 0, id of the site that requires a foreign folder to hold this site. See neededfolders for more details
INTEGER siteonlocationIf not 0, id of the site that's already publishing at this location
BOOLEAN successTrue if output is available