// fix refactoring templates in AdminCustomerThreadsController
This commit is contained in:
@@ -121,6 +121,19 @@ class EmployeeCore extends ObjectModel
|
||||
return parent::add($autodate, $null_values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return list of employees
|
||||
*/
|
||||
public static function getEmployees()
|
||||
{
|
||||
return Db::getInstance()->executeS('
|
||||
SELECT `id_employee`, `firstname`, `lastname`
|
||||
FROM `'._DB_PREFIX_.'employee`
|
||||
WHERE `active` = 1
|
||||
ORDER BY `lastname` ASC
|
||||
');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return employee instance from its e-mail (optionnaly check password)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user