本文整理汇总了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) {