// fix refactoring templates in AdminCustomerThreadsController

This commit is contained in:
lLefevre
2011-12-02 11:19:03 +00:00
parent a85c5d4cd2
commit 70fc45a18d
18 changed files with 1138 additions and 520 deletions
+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)
*