Back to PhocacartOrderStatus class

Method getStockMovementsSelectBox

public static
getStockMovementsSelectBox
(mixed $value)

Method getStockMovementsSelectBox - Source code

public static function getStockMovementsSelectBox($value)
{
    // see: administrator/components/com_phocacart/models/forms/phocacartstatus.xml
    $data = array('=' => Text::_('COM_PHOCACART_ITEMS_UNCHANGED'), '+' => Text::_('COM_PHOCACART_ITEMS_ADDED'), '-' => Text::_('COM_PHOCACART_ITEMS_SUBTRACTED'));
    if ($value == 0 || $value == '') {
        $value = '=';
    }
    return HTMLHelper::_('select.genericlist', $data, 'jform[stock_movements]', 'class="form-select"', 'value', 'text', $value, $data[$value]);
}