GET URL INFORMATIONS ********************/ $action = optional_param('action', ""); // Course Module ID, or $typeProduct = $params['type']; if ($action == 'update') { //get the information of the resource $currentBoard = voicetools_api_get_resource($params["resource_id"]); if (!isset($currentBoard) || $currentBoard->error == true) { wimba_add_log(WIMBA_ERROR, voicepresentation_LOGS, "getXmlNewPanel : " . get_string('problem_vt', 'voicepresentation')); $uiManager->setError(get_string('problem_vt', 'voicepresentation')); } else { $currentBoardInformations = voicepresentation_get_wimbaVoice_Informations($params["resource_id"]); $uiManager->setCurrentProduct($typeProduct, $currentBoard, $currentBoardInformations); } } else { $uiManager->setCurrentProduct($typeProduct); } $display = $uiManager->getVTSettingsView($action, $createWorkflow); } else { wimba_add_log(WIMBA_ERROR, voicepresentation_LOGS, "getXmlNewPanel : " . get_string('error_session', 'voicepresentation')); $uiManager->setError(get_string('error_session', 'voicepresentation')); } wimba_add_log(WIMBA_DEBUG, voicepresentation_LOGS, "getXmlListPanel : parameters \n" . $uiManager->getXmlString()); if (isset($error_wimba)) { $uiManager->setError(get_string('error_display', 'voicepresentation')); } echo $uiManager->getXmlString(); ?>