本文整理汇总了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());