本文整理汇总了PHP中DashboardController::display方法的典型用法代码示例。如果您正苦于以下问题:PHP DashboardController::display方法的具体用法?PHP DashboardController::display怎么用?PHP DashboardController::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DashboardController
的用法示例。
在下文中一共展示了DashboardController::display方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
//for hmtl editor repository
// get actions
$actions = array('listing', 'store_user_block', 'disable_block');
$action = 'listing';
if (isset($_GET['action']) && in_array($_GET['action'], $actions)) {
$action = $_GET['action'];
}
// load styles from dashboard plugins
$dashboar_plugin_styles = DashboardManager::get_links_for_styles_from_dashboard_plugins();
$htmlHeadXtra[] = $dashboar_plugin_styles;
// interbreadcrumb
//$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('Dashboard'));
// course description controller object
$dashboard_controller = new DashboardController();
if (isset($_GET['path'])) {
$path = $_GET['path'];
}
// distpacher actions to controller
switch ($action) {
case 'listing':
$dashboard_controller->display();
break;
case 'store_user_block':
$dashboard_controller->store_user_block();
break;
case 'disable_block':
$dashboard_controller->close_user_block($path);
break;
default:
$dashboard_controller->display();
}