static associate getAssocArrayIndexedByLabels(
string
$enumString
)
|
|
Get an associate array for the tuples of the enum where the labels are the array indices and the values are the array values.
Parameters:
API Tags:
| Return: | array indexed by labels. |
| Access: | public |
static associate getAssocArrayIndexedByValues(
string
$enumString
)
|
|
Get an associate array for the tuples of the enum where the values are the array indices and the labels are the array values.
Parameters:
API Tags:
| Return: | array indexed by labels. |
| Access: | public |
static string getLabel(
string
$enumString, int
$value
)
|
|
Get the string associated with the $p_enum value
Parameters:
|
string |
$enumString: |
|
|
int |
$value: |
|
API Tags:
static the getLocalizedLabel(
string
$enumString, string
$localizedEnumString, integer
$value
)
|
|
Gets the localized label corresponding to a value. Note that this method takes in the standard / localized enums so that if the value is in the localized enum but not the standard one, then it returns not found.
Parameters:
|
string |
$enumString: |
The standard enum string. |
|
string |
$localizedEnumString: |
The localized enum string. |
|
integer |
$value: |
The value to lookup. |
API Tags:
| Return: | label or the decorated value to represent not found. |
| Access: | public |
static integer getValue(
string
$enumString, string
$label
)
|
|
Gets the value associated with the specified label.
Parameters:
|
string |
$enumString: |
The enumerated string. |
|
string |
$label: |
The label to map. |
API Tags:
| Return: | value of the enum or false if not found. |
| Access: | public |
static array getValues(
$enumString
$enumString
)
|
|
Gets an array with all values in the enum.
Parameters:
API Tags:
| Return: | of unique values. |
| Access: | public |
static bool hasValue(
string
$enumString, integer
$value
)
|
|
Checks if the specified enum string contains the specified value.
Parameters:
|
string |
$enumString: |
The enumeration string. |
|
integer |
$value: |
The value to chec, |
API Tags:
| Return: | true if found, false otherwise. |
| Access: | public |