当前位置: 首页>>代码示例>>PHP>>正文


PHP order::getList方法代码示例

本文整理汇总了PHP中order::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP order::getList方法的具体用法?PHP order::getList怎么用?PHP order::getList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在order的用法示例。


在下文中一共展示了order::getList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

}
if (!empty($_REQUEST['timeframe'])) {
    $listHash['timeframe'] = $_REQUEST['timeframe'];
}
if (@BitBase::verifyId($_REQUEST['orders_status_id'])) {
    $listHash['orders_status_id'] = $_REQUEST['orders_status_id'];
    $_SESSION['orders_status_id'] = $_REQUEST['orders_status_id'];
}
if (!empty($_REQUEST['search'])) {
    $listHash['search'] = $_REQUEST['search'];
}
if (@BitBase::verifyId($_REQUEST['user_id'])) {
    $listHash['user_id'] = $_REQUEST['user_id'];
}
$listHash['orders_products'] = TRUE;
$orders = order::getList($listHash);
$gBitSmarty->assign_by_ref('listOrders', $orders);
$statuses['all'] = 'All';
foreach (commerce_get_statuses(TRUE) as $statusId => $statusName) {
    $statuses[$statusId] = $statusName;
}
$gBitSmarty->assign('commerceStatuses', $statuses);
$types[''] = 'All';
$productTypes = CommerceProduct::getTypes();
foreach ($productTypes as $typeId => $typeHash) {
    $types[$typeId] = $typeHash['type_name'];
}
$gBitSmarty->assign_by_ref('commerceProductTypes', $types);
$gBitSmarty->display('bitpackage:bitcommerce/admin_list_orders.tpl');
require 'includes/application_bottom.php';
require DIR_FS_ADMIN_INCLUDES . 'footer.php';
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:list_orders.php

示例2: array_flip

if (!empty($_REQUEST['period'])) {
    $listHash['period'] = $_REQUEST['period'];
}
if (isset($_REQUEST['compare']) && is_array($_REQUEST['compare'])) {
    // flip array for easy lookup
    $_REQUEST['compare'] = array_flip($_REQUEST['compare']);
}
$stats = new CommerceStatistics();
if (!empty($_REQUEST['interests_id'])) {
    $interests = $gBitCustomer->getInterests();
    $gBitSmarty->assign_by_ref('interestsList', $interests);
    $gBitSmarty->assign('interestsName', $interests[$_REQUEST['interests_id']]);
    $_REQUEST['orders_products'] = TRUE;
    $_REQUEST['orders_status_comparison'] = '>';
    $_REQUEST['orders_status_id'] = 0;
    $gBitSmarty->assign('listOrders', order::getList($_REQUEST));
    $gBitSystem->display('bitpackage:bitcommerce/admin_revenue_interest.tpl', tra('Revenue By Interest') . ' ' . $interests[$_REQUEST['interests_id']] . ' : ' . $_REQUEST['timeframe'], array('display_mode' => 'admin'));
} elseif (!empty($_REQUEST['referer'])) {
    foreach (array('period', 'timeframe', 'referer', 'exclude', 'include', 'new_reg') as $param) {
        if (!empty($_REQUEST[$param])) {
            $_REQUEST['listInfo']['parameters'][$param] = $_REQUEST[$param];
        }
    }
    $statsByReferer = $stats->getRevenueByReferer($_REQUEST);
    BitBase::postGetList($_REQUEST);
    $_REQUEST['listInfo']['block_pages'] = 3;
    $_REQUEST['listInfo']['item_name'] = 'coupons';
    $_REQUEST['listInfo']['page_records'] = count($statsByReferer['hosts']);
    $gBitSmarty->assign_by_ref('listInfo', $_REQUEST['listInfo']);
    $gBitSmarty->assign('statsByReferer', $stats->getRevenueByReferer($_REQUEST));
    $gBitSystem->display('bitpackage:bitcommerce/admin_revenue_referer.tpl', 'Revenue By Referer', array('display_mode' => 'admin'));
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:revenue.php


注:本文中的order::getList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。