Back to PhocacartOrderStatus class

Method getChangePointsReceivedSelectBox

public static
getChangePointsReceivedSelectBox
(mixed $value)

Method getChangePointsReceivedSelectBox - Source code

public static function getChangePointsReceivedSelectBox($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_received]', 'class="form-select"', 'value', 'text', $value, $data[$value]);
}