Data from employee #6

Merged
PootisPenserHere merged 5 commits from dataFromEmployee into master 2018-08-06 08:18:25 +00:00
Showing only changes of commit 0deb89ed53 - Show all commits

View File

@ -5,6 +5,7 @@ class EmployeeApplication{
private $pdo; private $pdo;
private $cryptographyService; private $cryptographyService;
private $asserts; private $asserts;
private $settings;
function __construct($employeeSettings, $mysql, $cryptographyService, $asserts){ function __construct($employeeSettings, $mysql, $cryptographyService, $asserts){
$this->settings = $employeeSettings; $this->settings = $employeeSettings;
@ -20,7 +21,12 @@ class EmployeeApplication{
* @return array * @return array
*/ */
function listEmployeeTypes(){ function listEmployeeTypes(){
$stmt = $this->pdo->prepare("SELECT id, name FROM employeeType WHERE status = 'ACTIVE'"); $stmt = $this->pdo->prepare("SELECT
id, name
FROM
employeeType
WHERE
status = 'ACTIVE'");
$stmt->execute(); $stmt->execute();
$results = $stmt->fetchAll(); $results = $stmt->fetchAll();