// <!--type: string--> $app_data->SoftwareVersion = 'v2.054'; // <!--type: string--> $app_data->SoftwareVersionDate = '2011-02-10'; // <!--type: string--> $app_data->PTLSSocketId = trim(Settings::PTLSSocketId); /* * Save Application Data * * Note: Store the Application Profile Id after this step. This will remain * static for your application unless you update your PTLS Socket Id. This step * only needs to occur during first time application setup. * */ if ($_applicationProfileId == null) { $applicationData = setApplicationData($app_data); $response = $client->SaveApplicationData($applicationData); $_applicationProfileId = $response; // Print Application Data echo '<div style="text-align:center; border-width: thin; border-color: black; border-style:solid; "><h1>Application Data</h1></div>'; echo '<ul><li>ApplicationProfileId:</b><font color="#800080"> ' . $_applicationProfileId . '</li></ul></font><br />'; } function setApplicationData($appData) { $applicationData = '<applicationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">' . '<ApplicationAttended>' . $appData->ApplicationAttended . '</ApplicationAttended>' . '<ApplicationLocation>' . $appData->ApplicationLocation . '</ApplicationLocation>' . '<ApplicationName>' . $appData->ApplicationName . '</ApplicationName>' . '<DeveloperId>' . $appData->DeveloperId . '</DeveloperId>' . '<HardwareType>' . $appData->HardwareType . '</HardwareType>' . '<PINCapability>' . $appData->PINCapability . '</PINCapability>' . '<PTLSSocketId>' . $appData->PTLSSocketId . '</PTLSSocketId>' . '<ReadCapability>' . $appData->ReadCapability . '</ReadCapability>' . '<SerialNumber>' . $appData->SerialNumber . '</SerialNumber>' . '<SoftwareVersion>' . $appData->SoftwareVersion . '</SoftwareVersion>' . '<SoftwareVersionDate>' . $appData->SoftwareVersionDate . '</SoftwareVersionDate>' . '<VendorId>' . $appData->VendorId . '</VendorId>' . '</applicationData>'; return $applicationData; } ?>