本文整理匯總了PHP中UserListFactory::getReportByCompanyIdAndUserIDList方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserListFactory::getReportByCompanyIdAndUserIDList方法的具體用法?PHP UserListFactory::getReportByCompanyIdAndUserIDList怎麽用?PHP UserListFactory::getReportByCompanyIdAndUserIDList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserListFactory
的用法示例。
在下文中一共展示了UserListFactory::getReportByCompanyIdAndUserIDList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UserGenericDataListFactory
$ugdlf = new UserGenericDataListFactory();
$ugdf = new UserGenericDataFactory();
$action = Misc::findSubmitButton();
switch ($action) {
case 'export':
case 'display_report':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
//Debug::Arr($filter_data, 'Filter Data', __FILE__, __LINE__, __METHOD__,10);
//Get all employees that match the criteria:
$ulf = new UserListFactory();
$ulf->getSearchByCompanyIdAndArrayCriteria($current_company->getId(), $filter_data);
if ($ulf->getRecordCount() > 0) {
foreach ($ulf as $u_obj) {
$filter_data['user_ids'][] = $u_obj->getId();
}
$ulf->getReportByCompanyIdAndUserIDList($current_company->getId(), $filter_data['user_ids']);
//Get title list,
$utlf = new UserTitleListFactory();
$user_titles = $utlf->getByCompanyIdArray($current_company->getId());
$uglf = new UserGroupListFactory();
$group_options = $uglf->getArrayByNodes(FastTree::FormatArray($uglf->getByCompanyIdArray($current_company->getId()), 'no_tree_text', TRUE));
//Get default branch list
$blf = new BranchListFactory();
$branch_options = $blf->getByCompanyIdArray($current_company->getId());
$dlf = new DepartmentListFactory();
$department_options = $dlf->getByCompanyIdArray($current_company->getId());
$pclf = new PermissionControlListFactory();
$pclf->getByCompanyId($current_company->getId());
$permission_control_options = $pclf->getArrayByListFactory($pclf, TRUE);
$ppslf = new PayPeriodScheduleListFactory();
$pay_period_schedule_options = $ppslf->getByCompanyIDArray($current_company->getId());