Browse Source

moved Pagination and Sort to data.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
51c1e31308
  1. 5
      framework/yii/data/Pagination.php
  2. 5
      framework/yii/data/Sort.php
  3. 4
      framework/yii/widgets/LinkPager.php
  4. 4
      framework/yii/widgets/ListPager.php

5
framework/yii/web/Pagination.php → framework/yii/data/Pagination.php

@ -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;
* @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
framework/yii/web/Sort.php → framework/yii/data/Sort.php

@ -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;
* @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

4
framework/yii/widgets/LinkPager.php

@ -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
} }
return array($beginPage, $endPage); return array($beginPage, $endPage);
} }
} }

4
framework/yii/widgets/ListPager.php

@ -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
)); ));
} }
} }

Loading…
Cancel
Save