本文整理匯總了PHP中project::has_dependencies方法的典型用法代碼示例。如果您正苦於以下問題:PHP project::has_dependencies方法的具體用法?PHP project::has_dependencies怎麽用?PHP project::has_dependencies使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類project
的用法示例。
在下文中一共展示了project::has_dependencies方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
foreach ($_POST as $key => $value) {
if ($key != 'mPath') {
unset($_POST[$key]);
}
}
}
}
}
}
}
}
break;
case 'delete_entry':
// Check for dependencies
$administration_project = new project($_POST['projects_id']);
if ($administration_project->has_dependencies()) {
$error_level = 13;
// Related role(s) exist
$_POST['action'] = '';
}
// Format dates (from uts to display)
$_POST['projects_start_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['projects_start_date']);
if ($_POST['projects_end_date'] != 0) {
$_POST['projects_end_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['projects_end_date']);
} else {
$_POST['projects_end_date_display'] = '';
}
break;
case 'delete_entry_confirmed':
$administration_project = new project($_POST['projects_id']);
$administration_project->delete();