$employee['id'], 'siteName' => htmlspecialchars(self::getConfig('siteName', constant('SITE_NAME'))), 'name' => htmlspecialchars($employee['name']), 'positionTitle' => htmlspecialchars($employee['positionTitle']), 'startDate' => date('m/d/Y', strtotime($employee['startDate'])), 'salary' => htmlspecialchars('$' . $employee['salary'] . '/year'), 'availabilityTitle' => htmlspecialchars($employee['availabilityTitle']), 'mobilePhone' => htmlspecialchars($employee['mobilePhone']), 'homePhone' => htmlspecialchars($employee['homePhone']), 'email' => htmlspecialchars($employee['email']), ]; } public static function sendApplicationSubmittedToAdmin(array $employee) { $placeholders = array_merge(self::createPlaceholders($employee), [ 'detailsUrl' => Admin\View::getPage('url') . '?action=view&id=' . $employee['id'], ]); $to = App_Settings_Obj::getAdminEmails(); return Qs_Mail::sendTemplate('employeeApplicationSubmittedToAdmin', $placeholders, $to); } public static function sendApplicationSubmittedToUser(array $employee) { if (empty($employee['email'])) { return true; } $placeholders = self::createPlaceholders($employee); $to = [$employee['email']]; return Qs_Mail::sendTemplate('employeeApplicationSubmittedToEmployee', $placeholders, $to); } }