Back to PhocacartOrderStatus class

Method getEmailSendFormatSelectBox

public static
getEmailSendFormatSelectBox
(mixed $value)

Method getEmailSendFormatSelectBox - Source code

/*
	public static function getEmailSendGiftSelectBox($value) {
		// see: administrator/components/com_phocacart/models/forms/phocacartstatus.xml
		$data = array(
			0 => Text::_('COM_PHOCACART_NO_ONE'),
			1 => Text::_('COM_PHOCACART_YES_BUYER'),
			2 => Text::_('COM_PHOCACART_YES_RECIPIENT'),
			3 => Text::_('COM_PHOCACART_YES_BUYER_AND_RECIPIENT')
		);

		return HTMLHelper::_('select.genericlist',  $data,  'jform[email_gift]', 'class="form-control"', 'value', 'text', $value, $data[$value] );

	}
*/
public static function getEmailSendFormatSelectBox($value)
{
    // see: administrator/components/com_phocacart/models/forms/phocacartstatus.xml
    $data = array(0 => Text::_('COM_PHOCACART_HTML'), 1 => Text::_('COM_PHOCACART_PDF'), 2 => Text::_('COM_PHOCACART_BOTH'));
    return HTMLHelper::_('select.genericlist', $data, 'jform[email_send_format]', 'class="form-select"', 'value', 'text', $value, $data[$value]);
}