本文整理汇总了PHP中Dashboard::hasGraphitePercentage方法的典型用法代码示例。如果您正苦于以下问题:PHP Dashboard::hasGraphitePercentage方法的具体用法?PHP Dashboard::hasGraphitePercentage怎么用?PHP Dashboard::hasGraphitePercentage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dashboard
的用法示例。
在下文中一共展示了Dashboard::hasGraphitePercentage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<?php
require_once 'Dashboard.php';
$times = isset($times) ? $times : Dashboard::getTimes();
if (!isset($time)) {
$time = !empty($_GET['time']) ? $_GET['time'] : '1h';
}
if (!isset($hide_deploys)) {
$hide_deploys = !empty($_GET['hide_deploys']) ? $_GET['hide_deploys'] : false;
}
$show_deploys = !$hide_deploys;
if (isset($graphs)) {
if (Dashboard::hasGraphitePie($graphs)) {
$page_js_imports = array_merge(isset($page_js_imports) ? $page_js_imports : array(), array("/assets/js/flot/jquery.flot.js", "/assets/js/flot/jquery.flot.pie.js", "/assets/js/flot.js", "/assets/js/graphite_percentage.js"));
}
if (Dashboard::hasGraphitePercentage($graphs)) {
$page_js_imports = array_merge(isset($page_js_imports) ? $page_js_imports : array(), array("/assets/js/d3-2.9.1.min.js", "/assets/js/graphite_percentage.js", "/assets/js/graphite_bar_percentage.js"));
}
$has_graphite_with_html_legend = false;
foreach ((array) $graphs as $section) {
foreach ((array) $section as $graph) {
if (isset($graph['type']) && $graph['type'] == 'graphite' && isset($graph['show_html_legend']) && $graph['show_html_legend'] == true) {
$has_graphite_with_html_legend = true;
}
}
}
if ($has_graphite_with_html_legend) {
$page_js_imports = array_merge(isset($page_js_imports) ? $page_js_imports : array(), array("/assets/js/zeroclipboard-0.7/ZeroClipboard.js", "/assets/js/copyurl.js"));
$page_css_imports = array_merge(isset($page_css_imports) ? $page_css_imports : array(), array("/assets/css/copyurl.css"));
}
}