// fix refactoring templates in AdminCustomerThreadsController

This commit is contained in:
lLefevre committed 2011-12-02 11:19:03 +00:00
1 parent a85c5d4cd2
commit 70fc45a18d
18 files changed
+1138 -520

No files matched your search

+13
View File
@@ -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)
*