本文整理汇总了PHP中Dashboard::get_dashboard_data方法的典型用法代码示例。如果您正苦于以下问题:PHP Dashboard::get_dashboard_data方法的具体用法?PHP Dashboard::get_dashboard_data怎么用?PHP Dashboard::get_dashboard_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dashboard
的用法示例。
在下文中一共展示了Dashboard::get_dashboard_data方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filter_dashboard_dates
public function filter_dashboard_dates()
{
$data = $_POST;
$dash = new Dashboard();
$resp = new ajax_response($data['action'], true);
if ($data['dashboard_date_count'] != '') {
$resp->set_status(true);
$resp->set_data(array('dashboard_dates' => $dash->get_dashboard_data((int) $data['dashboard_date_count'])));
}
echo $resp->encode_response();
die;
}
示例2:
</div>
<div class="wrapper table page-forms dashboard-form">
<div class="table-cell ">
</div>
<div class="table-cell ">
<form data-ajax-form data-action="filter_dashboard_dates" data-target="dashboard-days">
<ul class="inline">
<li>
<select name="dashboard_date_count" data-fireable-input>
<option value="7" selected>Week</option>
<option value="31">Month</option>
<option value="93">3 Months</option>
<option value="93">6 Months</option>
</select>
</li>
</ul>
</form>
</div>
</div>
<div class="wrapper dashboard-date-data">
<ul data-updateable-content="dashboard-days"><?php
echo $dash->get_dashboard_data();
?>
</ul>
</div>
<?php
get_footer();