当前位置: 首页>>代码示例>>PHP>>正文


PHP UserListFactory::getReportByCompanyIdAndUserIDList方法代码示例

本文整理汇总了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());
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:UserInformation.php


注:本文中的UserListFactory::getReportByCompanyIdAndUserIDList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。