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


PHP UserListFactory::getIsModifiedByCompanyIdAndDate方法代码示例

本文整理汇总了PHP中UserListFactory::getIsModifiedByCompanyIdAndDate方法的典型用法代码示例。如果您正苦于以下问题:PHP UserListFactory::getIsModifiedByCompanyIdAndDate方法的具体用法?PHP UserListFactory::getIsModifiedByCompanyIdAndDate怎么用?PHP UserListFactory::getIsModifiedByCompanyIdAndDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserListFactory的用法示例。


在下文中一共展示了UserListFactory::getIsModifiedByCompanyIdAndDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isLatestData

 function isLatestData($station_id, $last_check_epoch)
 {
     //$last_check_epoch = strtotime('27-Jan-06 14:20');
     Debug::Text('Checking for latest User/Branch/Dept data for Station ID: ' . $station_id . ' Last Checked: ' . TTDate::getDate('DATE+TIME', $last_check_epoch) . ' (' . $last_check_epoch . ')', __FILE__, __LINE__, __METHOD__, 10);
     //If last_check_epoch is NULL, or 0, return FALSE to force an update.
     if ($last_check_epoch == '' or $last_check_epoch == 0) {
         return FALSE;
     }
     //Gets all users allowed to punch in/out from this station
     $slf = new StationListFactory();
     $slf->getByStationID($station_id);
     if ($slf->getRecordCount() > 0) {
         $s_obj = $slf->getCurrent();
         $company_id = $s_obj->getCompany();
         Debug::Text('Found Station!! ID: ' . $s_obj->getId() . ' Company ID: ' . $company_id, __FILE__, __LINE__, __METHOD__, 10);
         if ($company_id != FALSE) {
             $ulf = new UserListFactory();
             $modified_arr['user_modified'] = $ulf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
             Debug::Text('Are Users Modified: ' . (int) $modified_arr['user_modified'], __FILE__, __LINE__, __METHOD__, 10);
             $blf = new BranchListFactory();
             $modified_arr['branch_modified'] = $blf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
             Debug::Text('Are Branches Modified: ' . (int) $modified_arr['branch_modified'], __FILE__, __LINE__, __METHOD__, 10);
             $dlf = new DepartmentListFactory();
             $modified_arr['department_modified'] = $dlf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
             Debug::Text('Are Departments Modified: ' . (int) $modified_arr['department_modified'], __FILE__, __LINE__, __METHOD__, 10);
             if (version_compare($this->getClientVersion(), '2.7.0', '>=')) {
                 $uilf = new UserIdentificationListFactory();
                 $modified_arr['user_identifiers_modified'] = $uilf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
                 Debug::Text('Are User Identifiers Modified: ' . (int) $modified_arr['user_identifiers_modified'], __FILE__, __LINE__, __METHOD__, 10);
             }
             if (getTTProductEdition() == TT_PRODUCT_PROFESSIONAL) {
                 $jlf = new JobListFactory();
                 $modified_arr['job_modified'] = $jlf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
                 Debug::Text('Are Jobs Modified: ' . (int) $modified_arr['job_modified'], __FILE__, __LINE__, __METHOD__, 10);
                 if ($modified_arr['job_modified'] == TRUE) {
                     $modified_arr['job_to_user_map_modified'] = TRUE;
                     $modified_arr['job_to_job_item_map_modified'] = TRUE;
                 }
             }
             if (getTTProductEdition() == TT_PRODUCT_PROFESSIONAL) {
                 $jilf = new JobItemListFactory();
                 $modified_arr['job_item_modified'] = $jilf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
                 Debug::Text('Are Job Items Modified: ' . (int) $modified_arr['job_item_modified'], __FILE__, __LINE__, __METHOD__, 10);
             }
             $oflf = new OtherFieldListFactory();
             $modified_arr['other_field_modified'] = $oflf->getIsModifiedByCompanyIdAndDate($company_id, $last_check_epoch);
             Debug::Text('Are Other Fields Modified: ' . (int) $modified_arr['other_field_modified'], __FILE__, __LINE__, __METHOD__, 10);
             return $modified_arr;
         }
     }
     return TRUE;
     //return FALSE;
 }
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:53,代码来源:TimeTrexSoapServerUnAuthenticated.class.php


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