本文整理汇总了PHP中RequestUtil::getParams方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestUtil::getParams方法的具体用法?PHP RequestUtil::getParams怎么用?PHP RequestUtil::getParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RequestUtil
的用法示例。
在下文中一共展示了RequestUtil::getParams方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index($limit = '')
{
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$couponCodes = (new CurdUtil($this->couponCodeModel))->readLimit($where, $limit, 'coupon_code_id desc');
$couponCodesCount = (new CurdUtil($this->couponCodeModel))->count($where);
$pages = (new PaginationUtil($couponCodesCount))->pagination();
$this->view('couponCode/index', array('coupons' => $couponCodes, 'limit' => $limit + 0, 'pages' => $pages, 'params' => RequestUtil::getParams()));
}
示例2: index
public function index($limit = '')
{
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$users = (new CurdUtil($this->userModel))->readLimit($where, $limit);
$usersCount = (new CurdUtil($this->userModel))->count($where);
$pages = (new PaginationUtil($usersCount))->pagination();
$this->view('user/index', array('users' => $users, 'pages' => $pages, 'params' => RequestUtil::getParams()));
}
示例3: index
public function index($limit = '')
{
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$exchangeGoods = (new CurdUtil($this->exchangeGoodsModel))->readLimit($where, $limit, 'exchange_goods_id desc');
$exchangeGoodsCount = (new CurdUtil($this->exchangeGoodsModel))->count($where);
$pages = (new PaginationUtil($exchangeGoodsCount))->pagination();
$shops = (new ShopModel())->getAllShops();
$this->view('exchangeGoods/index', array('exchangeGoods' => $exchangeGoods, 'limit' => $limit + 0, 'pages' => $pages, 'params' => RequestUtil::getParams(), 'shops' => $shops));
}
示例4: index
/**
* 美容师列表 没有使用分页
*/
public function index()
{
$timeSetting = $this->timeSetting;
$workTime = new WorkTimeUtil();
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$beauticians = (new BeauticianModel())->getAllBeauticians($where);
$shops = (new ShopModel())->getAllShops();
$beauticianOrderCounts = (new OrderModel())->getOrderCountsByBeauticianId();
$this->view('beautician/index', array('beauticians' => $beauticians, 'shops' => $shops, 'params' => RequestUtil::getParams(), 'beauticianOrderCounts' => $beauticianOrderCounts, 'timeSetting' => $timeSetting, 'workTime' => $workTime->beauticianWorkTime));
}
示例5: index
public function index($limit = '')
{
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$projects = (new CurdUtil($this->projectModel))->readLimit($where, $limit, 'project_id desc');
$projectsCount = (new CurdUtil($this->projectModel))->count($where);
$pages = (new PaginationUtil($projectsCount))->pagination();
$categories = (new CategoryModel())->getAllCategories();
$shops = (new ShopModel())->getAllShops();
$categoryId = $this->input->get('category_id') + 0;
$this->view('project/index', array('projects' => $projects, 'shops' => $shops, 'limit' => $limit + 0, 'pages' => $pages, 'categories' => $categories, 'params' => RequestUtil::getParams(), 'categoryId' => $categoryId));
}
示例6: index
public function index($limit = '')
{
// 获得查询参数, 查询参数都为like模糊查询
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$this->db->select('*');
$customers = (new CurdUtil($this->customerModel))->readLimit($where, $limit, 'customer_id desc');
$customersCount = (new CurdUtil($this->customerModel))->count($where);
$pages = (new PaginationUtil($customersCount))->pagination();
// 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知
$sex = array('未知', '男', '女');
$this->view('customer/index', array('customers' => $customers, 'pages' => $pages, 'params' => RequestUtil::getParams(), 'limit' => $limit, 'sex' => $sex));
}
示例7: index
public function index($limit = '')
{
// 获得查询参数, 查询参数都为like模糊查询
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$this->db->select('*');
$orders = (new CurdUtil($this->offlineOrderModel))->readLimit($where, $limit, 'offline_order_id desc');
$ordersCount = (new CurdUtil($this->offlineOrderModel))->count($where);
$pages = (new PaginationUtil($ordersCount))->pagination();
$shops = (new ShopModel())->getAllShops();
$beauticians = (new BeauticianModel())->getAllFormatBeauticians();
$this->view('offline/order', array('orders' => $orders, 'pages' => $pages, 'beauticians' => $beauticians, 'params' => RequestUtil::getParams(), 'shops' => $shops, 'limit' => $limit));
}
示例8: index
public function index($limit = '')
{
$shopId = $this->input->get('shop_id') + 0;
if ($shopId == 0) {
unset($_GET['shop_id']);
} else {
$this->db->where_in('shop_id', array(0, $shopId));
}
// 获得查询参数, 查询参数都为like模糊查询
$where = RequestUtil::buildLikeQueryParamsWithDisabled();
$this->db->select('*');
$this->db->select('order_status+0 as order_sign', false);
$orders = (new CurdUtil($this->orderModel))->readLimit($where, $limit, 'order_id desc');
$ordersCount = (new CurdUtil($this->orderModel))->count($where);
$pages = (new PaginationUtil($ordersCount))->pagination();
$shops = (new ShopModel())->getAllShops();
$beauticians = (new BeauticianModel())->getAllFormatBeauticians();
$this->view('order/index', array('orders' => $orders, 'pages' => $pages, 'beauticians' => $beauticians, 'params' => RequestUtil::getParams(), 'shops' => $shops, 'limit' => $limit));
}