本文整理汇总了PHP中ViewList::getView方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewList::getView方法的具体用法?PHP ViewList::getView怎么用?PHP ViewList::getView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewList
的用法示例。
在下文中一共展示了ViewList::getView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ViewList
$viewList = new ViewList();
$dwoo = new Dwoo($conf['dwoo_compiled_dir'], $conf['dwoo_cache_dir']);
$tpl = new Dwoo_Template_File(template("view_content.tpl"));
$data = new Dwoo_Data();
$size = isset($clustergraphsize) ? $clustergraphsize : 'default';
// set to 'default' to preserve old behavior
if ($size == 'medium') {
$size = 'default';
}
$additional_host_img_css_classes = "";
if (isset($conf['zoom_support']) && $conf['zoom_support'] === true) {
$additional_host_img_css_classes = "host_{$size}_zoomable";
}
$data->assign("additional_host_img_css_classes", $additional_host_img_css_classes);
$view_items = NULL;
$view = $viewList->getView($view_name);
if ($view != NULL) {
$range = isset($_GET["r"]) ? escapeshellcmd(rawurldecode($_GET["r"])) : NULL;
$cs = isset($_GET["cs"]) ? escapeshellcmd($_GET["cs"]) : NULL;
$ce = isset($_GET["ce"]) ? escapeshellcmd($_GET["ce"]) : NULL;
if ($cs or $ce) {
$range = "custom";
}
$view_items = getViewItems($view, $range, $cs, $ce);
}
if (isset($view_items)) {
$data->assign("view_items", $view_items);
$data->assign("number_of_view_items", count($view_items));
if ($view['common_y_axis'] != 0) {
$data->assign("common_y_axis", 1);
}