File tree Expand file tree Collapse file tree 3 files changed +6
-294
lines changed
Expand file tree Collapse file tree 3 files changed +6
-294
lines changed Original file line number Diff line number Diff line change 2222 * Class Paging
2323 * @package Inhere\LibraryPlus\Html
2424 */
25- class Paging extends PagingBase
25+ class ExtendedPagination extends Pagination
2626{
2727 /**
2828 * @var array
@@ -231,7 +231,7 @@ public function selectPage()
231231 onchange="javascript:location.href= \'' . $ this ->getUrl () . '\'+this.value;"> ' ;
232232
233233 for ($ i = 1 ; $ i <= $ this ->pageTotal ; $ i ++) {
234- $ select .= ($ page == $ i ) ?
234+ $ select .= ($ page === $ i ) ?
235235 '<option value=" ' . $ i . '" selected="selected""> ' . $ i . '</option> ' :
236236 '<option value=" ' . $ i . '" > ' . $ i . '</option> ' ;
237237 }
@@ -279,9 +279,9 @@ public function useStyle($type = 'full')
279279 }
280280
281281 // 添加 a 的外部元素 li
282- private function hasListElement ($ ele , $ attrs = [])
282+ private function hasListElement ($ ele , array $ attrs = [])
283283 {
284- if ($ this ->elements ['list ' ]['tag ' ] != '' ) {
284+ if ($ this ->elements ['list ' ]['tag ' ] !== '' ) {
285285 $ listEle = $ this ->elements ['list ' ]['tag ' ];
286286
287287 return Html::tag ($ listEle , $ ele , $ attrs );
Original file line number Diff line number Diff line change 1111use Inhere \Exceptions \InvalidConfigException ;
1212
1313/**
14- * Class PagingBase
14+ * Class Pagination
1515 * @package Inhere\LibraryPlus\Html
1616 */
17- class PagingBase
17+ class Pagination
1818{
1919 /**
2020 * 总的页数
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments