/** * Get the project with the given ID * @param $projectId * @return null */ public static function get_project($projectId) { try { return Airavata::getProject(Session::get('authz-token'), $projectId); } catch (InvalidRequestException $ire) { CommonUtilities::print_error_message('<p>There was a problem getting the project. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>InvalidRequestException: ' . $ire->getMessage() . '</p>'); } catch (AiravataClientException $ace) { CommonUtilities::print_error_message('<p>There was a problem getting the project. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataClientException: ' . $ace->getMessage() . '</p>'); } catch (AiravataSystemException $ase) { CommonUtilities::print_error_message('<p>There was a problem getting the project. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataSystemException!<br><br>' . $ase->getMessage() . '</p>'); } }