[mod] Select of employee times made multi line
This commit is contained in:
parent
f441696b96
commit
0deb89ed53
@ -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();
|
||||||
@ -226,7 +232,7 @@ class EmployeeApplication{
|
|||||||
"lastName" => strlen($employeeData['lastName']) > 0
|
"lastName" => strlen($employeeData['lastName']) > 0
|
||||||
? $this->cryptographyService->decryptString($employeeData['lastName'])
|
? $this->cryptographyService->decryptString($employeeData['lastName'])
|
||||||
: '',
|
: '',
|
||||||
|
|
||||||
"email" => $this->cryptographyService->decryptString($employeeData['email']),
|
"email" => $this->cryptographyService->decryptString($employeeData['email']),
|
||||||
"phone" => $employeeData['phone'],
|
"phone" => $employeeData['phone'],
|
||||||
"code" => $employeeData['code'],
|
"code" => $employeeData['code'],
|
||||||
|
Loading…
Reference in New Issue
Block a user