Commit 51c1e313 by Qiang Xue

moved Pagination and Sort to data.

parent b7c1f949
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\web; namespace yii\data;
use Yii; use Yii;
use yii\base\Object;
/** /**
* Pagination represents information relevant to pagination of data items. * Pagination represents information relevant to pagination of data items.
...@@ -62,7 +63,7 @@ use Yii; ...@@ -62,7 +63,7 @@ use Yii;
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*/ */
class Pagination extends \yii\base\Object class Pagination extends Object
{ {
/** /**
* @var string name of the parameter storing the current page index. Defaults to 'page'. * @var string name of the parameter storing the current page index. Defaults to 'page'.
......
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\web; namespace yii\data;
use Yii; use Yii;
use yii\base\Object;
use yii\helpers\Html; use yii\helpers\Html;
/** /**
...@@ -68,7 +69,7 @@ use yii\helpers\Html; ...@@ -68,7 +69,7 @@ use yii\helpers\Html;
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*/ */
class Sort extends \yii\base\Object class Sort extends Object
{ {
/** /**
* Sort ascending * Sort ascending
......
...@@ -11,7 +11,7 @@ use Yii; ...@@ -11,7 +11,7 @@ use Yii;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\helpers\Html; use yii\helpers\Html;
use yii\base\Widget; use yii\base\Widget;
use yii\web\Pagination; use yii\data\Pagination;
/** /**
* LinkPager displays a list of hyperlinks that lead to different pages of target. * LinkPager displays a list of hyperlinks that lead to different pages of target.
...@@ -198,4 +198,4 @@ class LinkPager extends Widget ...@@ -198,4 +198,4 @@ class LinkPager extends Widget
} }
return array($beginPage, $endPage); return array($beginPage, $endPage);
} }
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ namespace yii\widgets; ...@@ -10,7 +10,7 @@ namespace yii\widgets;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\helpers\Html; use yii\helpers\Html;
use yii\base\Widget; use yii\base\Widget;
use yii\web\Pagination; use yii\data\Pagination;
/** /**
* ListPager displays a drop-down list that contains options leading to different pages. * ListPager displays a drop-down list that contains options leading to different pages.
...@@ -92,4 +92,4 @@ class ListPager extends Widget ...@@ -92,4 +92,4 @@ class ListPager extends Widget
)); ));
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment