本文整理匯總了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;
}