本文整理汇总了PHP中Subnets::fetch_threshold_subnets方法的典型用法代码示例。如果您正苦于以下问题:PHP Subnets::fetch_threshold_subnets方法的具体用法?PHP Subnets::fetch_threshold_subnets怎么用?PHP Subnets::fetch_threshold_subnets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Subnets
的用法示例。
在下文中一共展示了Subnets::fetch_threshold_subnets方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") {
# get widget details
if (!($widget = $Tools->fetch_object("widgets", "wfile", $_REQUEST['section']))) {
$Result->show("danger", _("Invalid widget"), true);
}
# reset size and limit
$height = 350;
$slimit = 5;
# and print title
print "<div class='container'>";
print "<h4 style='margin-top:40px;'>{$widget->wtitle}</h4><hr>";
print "</div>";
}
if ($User->settings->enableThreshold == "1") {
# get thresholded subnets
$threshold_subnets = $Subnets->fetch_threshold_subnets(1000);
# any found ?
if ($threshold_subnets !== false) {
# loop
foreach ($threshold_subnets as $s) {
# check permission of user
$sp = $Subnets->check_permission($User->user, $s->id);
if ($sp != "0") {
$out[] = $s;
}
}
}
}
# disabled
if ($User->settings->enableThreshold != "1") {
print "<hr>";