[*] Classes : improve performances of "Feature detachable" feature

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8754 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2011-09-24 15:03:21 +00:00
parent cfca41b012
commit 78f6a4e20a
18 changed files with 334 additions and 149 deletions
+5 -6
View File
@@ -191,16 +191,15 @@ class CombinationCore extends ObjectModel
}
/**
* This method is allow to know if a feature is in use
* This method is allow to know if a Combination entity is currently used
* @since 1.5.0.1
* @param $table
* @param $has_active_column
* @return bool
*/
public static function isCurrentlyUsed()
public static function isCurrentlyUsed($table = null, $has_active_column = false)
{
return (bool)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT `id_product_attribute`
FROM `'._DB_PREFIX_.'product_attribute`
');
return parent::isCurrentlyUsed('product_attribute');
}
}