/** * Get all available applications * @return null */ public static function get_all_applications() { $applications = null; try { $applications = Airavata::getAllApplicationInterfaceNames(Session::get('authz-token'), Session::get("gateway_id")); } catch (InvalidRequestException $ire) { CommonUtilities::print_error_message('<p>There was a problem getting all applications. 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 all applications. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>Airavata Client Exception: ' . $ace->getMessage() . '</p>'); } catch (AiravataSystemException $ase) { CommonUtilities::print_warning_message('<p>You must create an application module, interface and deployment space before you can create an experiment. Click <a href="' . URL::to('/') . '/app/module">here</a> to create an application.</p>'); /* CommonUtilities::print_error_message('<p>There was a problem getting all applications. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>Airavata System Exception: ' . $ase->getMessage() . '</p>'); */ } if (count($applications) == 0) { CommonUtilities::print_warning_message('<p>You must create an application module, interface and deployment space before you can create an experiment. Click <a href="' . URL::to('/') . '/app/module">here</a> to create an application.</p>'); } return $applications; }