// Fix translation performance for any tab used by module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11939 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -173,6 +173,26 @@ class TabCore extends ObjectModel
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the list of tab used by a module
|
||||
*
|
||||
* @static
|
||||
* @return array
|
||||
*/
|
||||
public static function getModuleTabList()
|
||||
{
|
||||
$list = array();
|
||||
|
||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
|
||||
SELECT t.`class_name`, t.`module`
|
||||
FROM `'._DB_PREFIX_.'tab` t
|
||||
WHERE t.`module` IS NOT NULL AND t.`module` != ""');
|
||||
|
||||
foreach ($result as $detail)
|
||||
$list[strtolower($detail['class_name'])] = $detail;
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tabs
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user