Back to PhocacartUtilsSettings class

Method getLangQuery

public static
getLangQuery
(mixed $column, mixed $lang)

Method getLangQuery - Source code

public static function getLangQuery($column, $lang)
{
    $db = Factory::getDbo();
    // Possible settings
    //$pC					= PhocacartUtils::getComponentParameters();
    //$filter_lang_type	= $pC->get( 'filter_lang_type', 2 );
    //$type1 				= ' ' . $db->quoteName($column) . ' = '.$db->quote($lang);
    $type2 = ' ' . $db->quoteName($column) . ' IN (' . $db->quote($lang) . ',' . $db->quote('*') . ')';
    /*if ($filter_lang_type == 1) {
    			return $type1;
    		} else {
    			return $type2;
    		}*/
    return $type2;
}