"; } out(); out("Running ".basename(__FILE__)); $prefix = 'callIdVariables'; $keyValueStorage = ServiceManager::getServiceManager()->get(taoAltResultStorage_models_classes_KeyValueResultStorage::SERVICE_ID); $persistenceId = $keyValueStorage->getOption(taoAltResultStorage_models_classes_KeyValueResultStorage::OPTION_PERSISTENCE); //retrieve all keys $keys = common_persistence_KeyValuePersistence::getPersistence($persistenceId)->keys($prefix.'*'); foreach ($keys as $callId) { $callId = str_replace($prefix,'',$callId); out("----- Call ID -----".$callId); $variable = $keyValueStorage->getVariables($callId); foreach ($variable as $variableIdentifier => $data) { out("* Variable:\t".$variableIdentifier); out("* payload size:\t".strlen($data)); //out("* payload :\t". $data); } //print_r(common_persistence_KeyValuePersistence::getPersistence($persistenceId)->get($callId)); } $prefix = 'resultsTestTaker'; $keys = common_persistence_KeyValuePersistence::getPersistence($persistenceId)->keys($prefix.'*'); foreach ($keys as $key) { $key = str_replace($prefix,'',$key); out("----- Test Taker -----"); $testTaker = $keyValueStorage->getTestTaker($key); out("* deliveryResultIdentifier:\t".$testTaker["deliveryResultIdentifier"]); out("* testTakerIdentifier:\t".$testTaker["testTakerIdentifier"]); } $prefix = 'resultsDelivery'; $keys = common_persistence_KeyValuePersistence::getPersistence($persistenceId)->keys($prefix.'*'); foreach ($keys as $key) { $key = str_replace($prefix,'',$key); out("----- Delivery -----"); $testTaker = $keyValueStorage->getTestTaker($key); out("* deliveryResultIdentifier:\t".$testTaker["deliveryResultIdentifier"]); out("* deliveryIdentifier:\t".$testTaker["testTakerIdentifier"]); } ?>