From df54dbdde628671cc504138691b5e28a1ce1d136 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Wed, 10 Dec 2014 17:39:41 +0800 Subject: [PATCH] * code for task#2171. --- module/product/control.php | 4 ++++ module/product/model.php | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index b3dca5580e..52fb491014 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -40,6 +40,10 @@ class product extends control * * @param string $locate locate to browse page or not. If not, display all products. * @param int $productID + * @param string $orderBy + * @param int $recTotal + * @param int $recPerPage + * @param int $pageID * @access public * @return void */ diff --git a/module/product/model.php b/module/product/model.php index 03d124eee8..7f213d9d01 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -463,10 +463,12 @@ class productModel extends model /** * Get product stats. * + * @param string $orderBy + * @param int $pager * @access public - * @return array + * @return array */ - public function getStats($orderBy = 'code asc', $pager = null) + public function getStats($orderBy = 'code_asc', $pager = null) { $this->loadModel('report'); $this->loadModel('story');