function Action_GetModule()
{
    writeStartTag("Module");
    writeElement("Platform", SHIPWORKS_PLATFORM);
    writeElement("Developer", SHIPWORKS_DEVELOPER);
    writeStartTag("Capabilities");
    writeElement("DownloadStrategy", "ByModifiedTime");
    writeFullElement("OnlineCustomerID", "", array("supported" => "true", "dataType" => "numeric"));
    writeFullElement("OnlineStatus", "", array("supported" => "true", "dataType" => "text", "downloadOnly" => "false"));
    writeFullElement("OnlineShipmentUpdate", "", array("supported" => "true"));
    writeCloseTag("Capabilities");
    writeCloseTag("Module");
}
Пример #2
0
function WriteOrderTotal($name, $value, $class, $impact = "add")
{
    if ($value > 0) {
        writeFullElement("Total", $value, array("name" => $name, "class" => $class, "impact" => $impact));
    }
}