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


PHP RequestUtil::getParams方法代码示例

本文整理汇总了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()));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:8,代码来源:CouponCode.php

示例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()));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:8,代码来源:User.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:9,代码来源:ExchangeGoods.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:13,代码来源:Beautician.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:11,代码来源:Project.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:12,代码来源:Customer.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:12,代码来源:OfflineOrder.php

示例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));
 }
开发者ID:guohao214,项目名称:xinya,代码行数:19,代码来源:Order.php


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