Back to PhocacartOrderStatus class

Method getChangeChangePointsNeededSelectBox

public static
getChangeChangePointsNeededSelectBox
(mixed $value)

Method getChangeChangePointsNeededSelectBox - Source code

public static function getChangeChangePointsNeededSelectBox($value)
{
    // see: administrator/components/com_phocacart/models/forms/phocacartstatus.xml
    $data = array('0' => Text::_('COM_PHOCACART_REWARD_POINTS_UNCHANGED'), '1' => Text::_('COM_PHOCACART_REWARD_POINTS_CHANGED_CHANGE_APPROVED'), '2' => Text::_('COM_PHOCACART_REWARD_POINTS_CHANGED_CHANGE_NOT_APPROVED'));
    if ($value == '') {
        $value = 0;
    }
    return HTMLHelper::_('select.genericlist', $data, 'jform[change_points_needed]', 'class="form-select"', 'value', 'text', $value, $data[$value]);
}