本文整理汇总了PHP中AdminHelper::getActivity方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminHelper::getActivity方法的具体用法?PHP AdminHelper::getActivity怎么用?PHP AdminHelper::getActivity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminHelper
的用法示例。
在下文中一共展示了AdminHelper::getActivity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array_pop
$cash_admin->page_data['show_pagination'] = true;
$cash_admin->page_data['show_next'] = true;
if ($cash_admin->page_data['show_previous']) {
$cash_admin->page_data['show_nextandprevious'] = true;
}
array_pop($all_order_details);
}
$cash_admin->page_data['orders_recent'] = new ArrayIterator($all_order_details);
$cash_admin->page_data['show_filters'] = true;
}
}
$user_response = $cash_admin->requestAndStore(array('cash_request_type' => 'people', 'cash_action' => 'getuser', 'user_id' => $cash_admin->effective_user_id));
if (is_array($user_response['payload'])) {
$current_userdata = $user_response['payload']['data'];
}
$session_news = AdminHelper::getActivity($current_userdata);
if ($session_news) {
// now set up page variables
$total_spend = 0;
$orders_currency = 'USD';
if (is_array($session_news['activity']['orders'])) {
foreach ($session_news['activity']['orders'] as $order) {
$order_contents = json_decode($order['order_contents']);
if (is_array($order_contents)) {
foreach ($order_contents as $item) {
$total_spend = $total_spend + $item->price;
}
}
$orders_currency = $order['currency'];
}
$total_spend = round($total_spend);