本文整理汇总了PHP中BaseService::setUserTables方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseService::setUserTables方法的具体用法?PHP BaseService::setUserTables怎么用?PHP BaseService::setUserTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseService
的用法示例。
在下文中一共展示了BaseService::setUserTables方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BaseService
EmployeeCompanyLoan::SetDatabaseAdapter($dbLocal);
Setting::SetDatabaseAdapter($dbLocal);
ChiNhanh::SetDatabaseAdapter($dbLocal);
Ca::SetDatabaseAdapter($dbLocal);
BoPhan::SetDatabaseAdapter($dbLocal);
Nguon::SetDatabaseAdapter($dbLocal);
LoaiNgay::SetDatabaseAdapter($dbLocal);
NVState::SetDatabaseAdapter($dbLocal);
NhanVien::SetDatabaseAdapter($dbLocal);
NhuCauTuyenDung::SetDatabaseAdapter($dbLocal);
$baseService = new BaseService();
$baseService->setNonDeletables("User", "id", 1);
$baseService->setCurrentUser($user);
$baseService->setDB($dbLocal);
$fileService = new FileService();
$settingsManager = new SettingsManager();
$emailEnabled = $settingsManager->getSetting("Email: Enable");
$emailMode = $settingsManager->getSetting("Email: Mode");
$emailSender = null;
if ($emailEnabled == "1") {
if ($emailMode == "SMTP") {
$emailSender = new SMTPEmailSender($settingsManager);
} else {
if ($emailMode == "SNS") {
$emailSender = new SNSEmailSender($settingsManager);
}
}
}
$userTables = array("EmployeeSkill", "EmployeeEducation", "EmployeeCertification", "EmployeeLanguage", "EmergencyContact", "EmployeeDependent", "EmployeeImmigration", "EmployeeSalary", "EmployeeLeave", "EmployeeTimeSheet", "EmployeeTimeEntry", "EmployeeProject", "EmployeeDocument", "EmployeeCompanyLoan");
$baseService->setUserTables($userTables);
$baseService->setSqlErrors($mysqlErrors);