OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.MCommon.CommonCodeHelper Class Reference

Gets descriptions for codes in the Common Module. More...

Static Public Member Functions

static string GetCountryName (TGetCacheableDataTableFromCache ACacheRetriever, string ACountryCode)
 Returns the name of a Country. More...
 
static string GetCountryIntlTelephoneCode (TGetCacheableDataTableFromCache ACacheRetriever, string AIntlTelephoneCode)
 Returns the International Telephone Code of a Country. More...
 

Detailed Description

Gets descriptions for codes in the Common Module.

Member Function Documentation

◆ GetCountryIntlTelephoneCode()

static string Ict.Petra.Shared.MCommon.CommonCodeHelper.GetCountryIntlTelephoneCode ( TGetCacheableDataTableFromCache  ACacheRetriever,
string  AIntlTelephoneCode 
)
inlinestatic

Returns the International Telephone Code of a Country.

Parameters
ACacheRetrieverDelegate that returns the specified DataTable from the data cache (client- or serverside). Delegate Method needs to be for the MCommon Cache (that is, it needs to work with the TCacheableCommonTablesEnum Enum!
AIntlTelephoneCodeInternational Telephone Code.
Returns
The description of a Country Code, or empty string if the Country Code could not be identified.

◆ GetCountryName()

static string Ict.Petra.Shared.MCommon.CommonCodeHelper.GetCountryName ( TGetCacheableDataTableFromCache  ACacheRetriever,
string  ACountryCode 
)
inlinestatic

Returns the name of a Country.

Parameters
ACacheRetrieverDelegate that returns the specified DataTable from the data cache (client- or serverside). Delegate Method needs to be for the MCommon Cache (that is, it needs to work with the TCacheableCommonTablesEnum Enum!
ACountryCodeCountry Code.
Returns
The description of a Country Code, or empty string if the Country Code could not be identified.

The documentation for this class was generated from the following file: