本文整理匯總了PHP中project::has_activities方法的典型用法代碼示例。如果您正苦於以下問題:PHP project::has_activities方法的具體用法?PHP project::has_activities怎麽用?PHP project::has_activities使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類project
的用法示例。
在下文中一共展示了project::has_activities方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
} else {
if (tep_not_null($administration_project->has_employees_roles('employees_roles_start_date', '<', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date']), 'AND', 'employees_roles_end_date', '>=', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date'])))) {
$_POST['question_er1_answer'] = true;
// Employees-Roles start date will change
// Check tariffs
if (tep_not_null($administration_project->has_tariffs('tariffs_end_date', '<', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date'])))) {
$_POST['action'] = 'enter_data';
$error_level = 8;
// Tariff end date before new start date
break;
} else {
if (tep_not_null($administration_project->has_tariffs('tariffs_start_date', '<', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date']), 'AND', 'tariffs_end_date', '>=', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date'])))) {
$_POST['question_t1_answer'] = true;
// Tariffs start date will change
// Check if activities exist before new start date
if (tep_not_null($administration_project->has_activities('activities_date', '<', tep_strftime(DATE_FORMAT_DATABASE, $_POST['projects_start_date'])))) {
$_POST['action'] = 'enter_data';
$error_level = 9;
// Activities exist before new start date (thus between old and new start date)
break;
}
}
}
}
}
}
}
/*******************************************/
/*** Second do the end date check series ***/
/*******************************************/
if ($_POST['projects_end_date'] != $administration_project->end_date) {