Back to PhocacartUtilsSettings class

Method getExtensionsJSONObtainTypeText

public static
getExtensionsJSONObtainTypeText
(mixed $type)

Method getExtensionsJSONObtainTypeText - Source code

public static function getExtensionsJSONObtainTypeText($type)
{
    switch ($type) {
        case 0:
            return JText::_('COM_PHOCACART_PAID');
            // Paid
            break;
        case 1:
            return JText::_('COM_PHOCACART_FREE');
            // Free Install
            break;
        case 2:
            return JText::_('COM_PHOCACART_FREE');
            // Free Download
            break;
        case 3:
            return JText::_('COM_PHOCACART_FREE_REGISTER');
            // Free Download but register
            break;
        case 4:
            return JText::_('COM_PHOCACART_PAID_SUBSCRIPTION');
            // Paid - Subscription
            break;
        default:
            return '';
            break;
    }
}