public static function update_project($projectId, $projectDetails) { $updatedProject = new Project(); $updatedProject->owner = $projectDetails["owner"]; $updatedProject->name = $projectDetails["name"]; $updatedProject->description = $projectDetails["description"]; try { Airavata::updateProject(Session::get('authz-token'), $projectId, $updatedProject); //Utilities::print_success_message('Project updated! Click <a href="project_summary.php?projId=' . $projectId . '">here</a> to view the project summary.'); } catch (InvalidRequestException $ire) { CommonUtilities::print_error_message('InvalidRequestException!<br><br>' . $ire->getMessage()); } catch (ProjectNotFoundException $pnfe) { CommonUtilities::print_error_message('ProjectNotFoundException!<br><br>' . $pnfe->getMessage()); } catch (AiravataClientException $ace) { CommonUtilities::print_error_message('AiravataClientException!<br><br>' . $ace->getMessage()); } catch (AiravataSystemException $ase) { CommonUtilities::print_error_message('AiravataSystemException!<br><br>' . $ase->getMessage()); } }