DropDownDefaultValueOrderUtil Class Reference

Static Public Member Functions

static getDefaultValueOrderFromDefaultValue ($defaultValue, $customFieldDataData)
static getDefaultValueFromDefaultValueOrder ($defaultValueOrder, $customFieldDataData)

Detailed Description

This class exists to support the adaption between the drop down defaultValue and the user interface for administering the defaultValue. The user interface must rely on the ordering of the pick list items in the array by their key. This is in order to support adding pick list items in the user interface on the fly and then making one of those new pick list items the default value before posting any information to be processed. This class has utilities to switch between the defaultValue which is the pick list item 'name' to/from the defaultValueOrder which is the 'order' or 'key' of the array that has the items.

Definition at line 46 of file DropDownDefaultValueOrderUtil.php.


Member Function Documentation

static getDefaultValueOrderFromDefaultValue ( defaultValue,
customFieldDataData 
) [static]
Parameters:
$defaultValue 
$customFieldDataData 
Returns:
array mixed|null

Definition at line 53 of file DropDownDefaultValueOrderUtil.php.

static getDefaultValueFromDefaultValueOrder ( defaultValueOrder,
customFieldDataData 
) [static]
Parameters:
$defaultValueOrder 
$customFieldDataData 
Returns:
null

Definition at line 69 of file DropDownDefaultValueOrderUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Apr 24 07:10:25 2017