bebeboutik/override/classes/Employee.php

15 lines
437 B
PHP
Raw Normal View History

2017-04-13 13:01:51 +02:00
<?php
class Employee extends EmployeeCore {
public static function getEmployeesByProfile($id_profiles=array())
{
Tools::displayAsDeprecated();
return Db::getInstance()->ExecuteS('
SELECT `id_employee`, CONCAT(`firstname`, \' \', `lastname`) AS "name"
FROM `'._DB_PREFIX_.'employee`
WHERE `active` = 1 AND id_profile IN ('.implode(',',$id_profiles).')
ORDER BY `email`');
}
}