public static function create_or_update_appModule($inputs, $update = false) { $appModule = new ApplicationModule(array("appModuleName" => $inputs["appModuleName"], "appModuleVersion" => $inputs["appModuleVersion"], "appModuleDescription" => $inputs["appModuleDescription"])); if ($update) { return Airavata::updateApplicationModule(Session::get('authz-token'), $inputs["appModuleId"], $appModule); } else { return Airavata::registerApplicationModule(Session::get('authz-token'), Session::get("gateway_id"), $appModule); } }