當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。