當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Warehouse::getClientList方法代碼示例

本文整理匯總了PHP中Warehouse::getClientList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Warehouse::getClientList方法的具體用法?PHP Warehouse::getClientList怎麽用?PHP Warehouse::getClientList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Warehouse的用法示例。


在下文中一共展示了Warehouse::getClientList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Warehouse

 */
/**
 * required setup
 */
require_once '../kernel/setup_inc.php';
$gBitSystem->verifyPackage('warehouse');
if (!$gBitUser->hasUserPermission('p_warehouse_view')) {
    $gBitSystem->fatalError('You do not have prermission to view this package');
}
require_once WAREHOUSE_PKG_PATH . 'Warehouse.php';
global $gBitSystem, $gBitSmarty;
$gWarehouse = new Warehouse();
/* Get a list of galleries which matches the imput paramters (default is to list every gallery in the system) */
$_REQUEST['root_only'] = TRUE;
/* Process the input parameters this page accepts */
if (!empty($_REQUEST['warehouse_id'])) {
    $gBitSmarty->assign_by_ref('gWarehouseId', $_REQUEST['warehouse_id']);
    $template = 'list_warehouses.tpl';
} else {
    $template = 'list_clients.tpl';
}
$warehouseList = $gWarehouse->getList($_REQUEST);
// Pagination Data
// $gBitSmarty->assign_by_ref( 'listInfo', $_REQUEST['listInfo'] );
$gBitSmarty->assign('warehouseList', $warehouseList);
$clientList = $gWarehouse->getClientList($_REQUEST);
$gBitSmarty->assign('clientList', $clientList);
// Display the template
$gDefaultCenter = "bitpackage:warehouse/{$template}";
$gBitSmarty->assign_by_ref('gDefaultCenter', $gDefaultCenter);
$gBitSystem->display('bitpackage:kernel/dynamic.tpl', 'List Client Warehouse Space', array('display_mode' => 'list'));
開發者ID:bitweaver,項目名稱:warehouse,代碼行數:31,代碼來源:list_clients.php


注:本文中的Warehouse::getClientList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。