[+] BO: Add Specific prices bulk generator

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11056 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-12-08 16:01:10 +00:00
parent 884e7492c1
commit 86b65ef6df
10 changed files with 597 additions and 15 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ class FeatureValueCore extends ObjectModel
* @return array Array with feature's values
* @static
*/
public static function getFeatureValuesWithLang($id_lang, $id_feature)
public static function getFeatureValuesWithLang($id_lang, $id_feature, $custom = false)
{
return Db::getInstance()->executeS('
SELECT *
@@ -113,7 +113,7 @@ class FeatureValueCore extends ObjectModel
LEFT JOIN `'._DB_PREFIX_.'feature_value_lang` vl
ON (v.`id_feature_value` = vl.`id_feature_value` AND vl.`id_lang` = '.(int)$id_lang.')
WHERE v.`id_feature` = '.(int)$id_feature.'
AND (v.`custom` IS NULL OR v.`custom` = 0)
'.(!$custom ? 'AND (v.`custom` IS NULL OR v.`custom` = 0)' : '').'
ORDER BY vl.`value` ASC
');
}