1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
|
<?php
/**
* TPager class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
*/
Prado::using('System.Web.UI.WebControls.TDataBoundControl');
Prado::using('System.Web.UI.WebControls.TPanelStyle');
Prado::using('System.Collections.TPagedDataSource');
Prado::using('System.Collections.TDummyDataSource');
/**
* TPager class.
*
* TPager creates a pager that controls the paging of the data populated
* to a data-bound control specified by {@link setControlToPaginate ControlToPaginate}.
* To specify the number of data items displayed on each page, set
* the {@link setPageSize PageSize} property, and to specify which
* page of data to be displayed, set {@link setCurrentPageIndex CurrentPageIndex}.
*
* When the size of the original data is too big to be loaded all in the memory,
* one can enable custom paging. In custom paging, the total number of data items
* is specified manually via {@link setVirtualItemCount VirtualItemCount}, and the data source
* only needs to contain the current page of data. To enable custom paging,
* set {@link setAllowCustomPaging AllowCustomPaging} to true.
*
* TPager can be in one of three {@link setMode Mode}:
* - NextPrev: a next page and a previous page button are rendered.
* - Numeric: a list of page index buttons are rendered.
* - List: a dropdown list of page indices are rendered.
*
* TPager raises an {@link onPageIndexChanged OnPageIndexChanged} event when
* the end-user interacts with it and specifies a new page (e.g. clicking
* on a page button that leads to a new page.) The new page index may be obtained
* from the event parameter's property {@link TPagerPageChangedEventParameter::getNewPageIndex NewPageIndex}.
*
* When multiple pagers are associated with the same data-bound control,
* these pagers will do synchronization among each other so that the interaction
* with one pager will automatically update the UI of the other relevant pagers.
*
* The following example shows a typical usage of TPager:
* <code>
* $pager->ControlToPaginate="Path.To.Control";
* $pager->DataSource=$data;
* $pager->dataBind();
* </code>
* Note, the data is assigned to the pager and dataBind() is invoked against the pager.
* Without the pager, one has to set datasource for the target control and call
* its dataBind() directly.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
* @since 3.0.2
*/
class TPager extends TDataBoundControl implements INamingContainer
{
/**
* Command name that TPager understands.
*/
const CMD_PAGE='Page';
const CMD_PAGE_NEXT='Next';
const CMD_PAGE_PREV='Previous';
const CMD_PAGE_FIRST='First';
const CMD_PAGE_LAST='Last';
/**
* @var array list of all pagers, used to synchronize their appearance
*/
static private $_pagers=array();
/**
* Registers the pager itself to a global list.
* This method overrides the parent implementation and is invoked during
* OnInit control lifecycle.
* @param mixed event parameter
*/
public function onInit($param)
{
parent::onInit($param);
self::$_pagers[]=$this;
}
/**
* Unregisters the pager from a global list.
* This method overrides the parent implementation and is invoked during
* OnUnload control lifecycle.
* @param mixed event parameter
*/
public function onUnload($param)
{
parent::onUnload($param);
if(($index=array_search($this,self::$_pagers,true))!==false)
unset(self::$_pagers[$index]);
}
/**
* Restores the pager state.
* This method overrides the parent implementation and is invoked when
* the control is loading persistent state.
*/
public function loadState()
{
parent::loadState();
if(!$this->getEnableViewState(true))
return;
if(!$this->getIsDataBound())
$this->restoreFromViewState();
}
/**
* @return string the ID path of the control whose content would be paginated.
*/
public function getControlToPaginate()
{
return $this->getViewState('ControlToPaginate','');
}
/**
* Sets the ID path of the control whose content would be paginated.
* The ID path is the dot-connected IDs of the controls reaching from
* the pager's naming container to the target control.
* @param string the ID path
*/
public function setControlToPaginate($value)
{
$this->setViewState('ControlToPaginate',$value,'');
}
/**
* @return integer the zero-based index of the current page. Defaults to 0.
*/
public function getCurrentPageIndex()
{
return $this->getViewState('CurrentPageIndex',0);
}
/**
* @param integer the zero-based index of the current page
* @throws TInvalidDataValueException if the value is less than 0
*/
public function setCurrentPageIndex($value)
{
if(($value=TPropertyValue::ensureInteger($value))<0)
throw new TInvalidDataValueException('pager_currentpageindex_invalid');
$this->setViewState('CurrentPageIndex',$value,0);
}
/**
* @return integer the number of data items on each page. Defaults to 10.
*/
public function getPageSize()
{
return $this->getViewState('PageSize',10);
}
/**
* @param integer the number of data items on each page.
* @throws TInvalidDataValueException if the value is less than 1
*/
public function setPageSize($value)
{
if(($value=TPropertyValue::ensureInteger($value))<1)
throw new TInvalidDataValueException('pager_pagesize_invalid');
$this->setViewState('PageSize',TPropertyValue::ensureInteger($value),10);
}
/**
* @return integer number of pages
*/
public function getPageCount()
{
if(($count=$this->getItemCount())<1)
return 1;
else
{
$pageSize=$this->getPageSize();
return (int)(($count+$pageSize-1)/$pageSize);
}
}
/**
* @return boolean whether the custom paging is enabled. Defaults to false.
*/
public function getAllowCustomPaging()
{
return $this->getViewState('AllowCustomPaging',false);
}
/**
* Sets a value indicating whether the custom paging should be enabled.
* When the pager is in custom paging mode, the {@link setVirtualItemCount VirtualItemCount}
* property is used to determine the paging, and the data items in the
* {@link setDataSource DataSource} are considered to be in the current page.
* @param boolean whether the custom paging is enabled
*/
public function setAllowCustomPaging($value)
{
$this->setViewState('AllowCustomPaging',TPropertyValue::ensureBoolean($value),false);
}
/**
* @return integer virtual number of data items in the data source. Defaults to 0.
* @see setAllowCustomPaging
*/
public function getVirtualItemCount()
{
return $this->getViewState('VirtualItemCount',0);
}
/**
* @param integer virtual number of data items in the data source.
* @throws TInvalidDataValueException if the value is less than 0
* @see setAllowCustomPaging
*/
public function setVirtualItemCount($value)
{
if(($value=TPropertyValue::ensureInteger($value))<0)
throw new TInvalidDataValueException('pager_virtualitemcount_invalid');
$this->setViewState('VirtualItemCount',$value,0);
}
/**
* @return integer total number of items in the datasource.
*/
public function getItemCount()
{
return $this->getViewState('ItemCount',0);
}
/**
* @return string pager mode. Defaults to 'NextPrev'.
*/
public function getMode()
{
return $this->getViewState('Mode','NextPrev');
}
/**
* @param string pager mode. Valid values include 'NextPrev', 'Numeric' and 'List'.
*/
public function setMode($value)
{
$this->setViewState('Mode',TPropertyValue::ensureEnum($value,'NextPrev','Numeric','List'),'NextPrev');
}
/**
* @return string the type of command button for paging. Defaults to 'LinkButton'.
*/
public function getButtonType()
{
return $this->getViewState('ButtonType','LinkButton');
}
/**
* @param string the type of command button for paging. Valid values include 'LinkButton' and 'PushButton'.
*/
public function setButtonType($value)
{
$this->setViewState('ButtonType',TPropertyValue::ensureEnum($value,'LinkButton','PushButton'));
}
/**
* @return string text for the next page button. Defaults to '>'.
*/
public function getNextPageText()
{
return $this->getViewState('NextPageText','>');
}
/**
* @param string text for the next page button.
*/
public function setNextPageText($value)
{
$this->setViewState('NextPageText',$value,'>');
}
/**
* @return string text for the previous page button. Defaults to '<'.
*/
public function getPrevPageText()
{
return $this->getViewState('PrevPageText','<');
}
/**
* @param string text for the next page button.
*/
public function setPrevPageText($value)
{
$this->setViewState('PrevPageText',$value,'<');
}
/**
* @return string text for the first page button. Defaults to '<<'.
*/
public function getFirstPageText()
{
return $this->getViewState('FirstPageText','<<');
}
/**
* @param string text for the first page button. If empty, the first page button will not be rendered.
*/
public function setFirstPageText($value)
{
$this->setViewState('FirstPageText',$value,'<<');
}
/**
* @return string text for the last page button. Defaults to '>>'.
*/
public function getLastPageText()
{
return $this->getViewState('LastPageText','>>');
}
/**
* @param string text for the last page button. If empty, the last page button will not be rendered.
*/
public function setLastPageText($value)
{
$this->setViewState('LastPageText',$value,'>>');
}
/**
* @return integer maximum number of pager buttons to be displayed. Defaults to 10.
*/
public function getPageButtonCount()
{
return $this->getViewState('PageButtonCount',10);
}
/**
* @param integer maximum number of pager buttons to be displayed
* @throws TInvalidDataValueException if the value is less than 1.
*/
public function setPageButtonCount($value)
{
if(($value=TPropertyValue::ensureInteger($value))<1)
throw new TInvalidDataValueException('pager_pagebuttoncount_invalid');
$this->setViewState('PageButtonCount',$value,10);
}
/**
* @return TPagedDataSource creates a paged data source
*/
private function createPagedDataSource()
{
$ds=new TPagedDataSource;
$ds->setAllowPaging(true);
$customPaging=$this->getAllowCustomPaging();
$ds->setAllowCustomPaging($customPaging);
$ds->setCurrentPageIndex($this->getCurrentPageIndex());
$ds->setPageSize($this->getPageSize());
if($customPaging)
$ds->setVirtualItemCount($this->getVirtualItemCount());
return $ds;
}
/**
* Removes the existing child controls.
*/
protected function reset()
{
$this->getControls()->clear();
}
/**
* Restores the pager from viewstate.
*/
protected function restoreFromViewState()
{
$this->reset();
$ds=$this->createPagedDataSource();
$ds->setDataSource(new TDummyDataSource($this->getItemCount()));
$this->buildPager($ds);
}
/**
* Performs databinding to populate data items from data source.
* This method is invoked by {@link dataBind()}.
* You may override this function to provide your own way of data population.
* @param Traversable the bound data
*/
protected function performDataBinding($data)
{
$this->reset();
$controlID=$this->getControlToPaginate();
if(($targetControl=$this->getNamingContainer()->findControl($controlID))===null || !($targetControl instanceof TDataBoundControl))
throw new TConfigurationException('pager_controltopaginate_invalid',$controlID);
$ds=$this->createPagedDataSource();
$ds->setDataSource($this->getDataSource());
$this->setViewState('ItemCount',$ds->getDataSourceCount());
$this->buildPager($ds);
$this->synchronizePagers($targetControl,$ds);
$targetControl->setDataSource($ds);
$targetControl->dataBind();
}
/**
* Synchronizes the state of all pagers who have the same {@link getControlToPaginate ControlToPaginate}.
* @param TDataBoundControl the control whose content is to be paginated
* @param TPagedDataSource the paged data source associated with the pager
*/
protected function synchronizePagers($targetControl,$dataSource)
{
foreach(self::$_pagers as $pager)
{
if($pager!==$this && $pager->getNamingContainer()->findControl($pager->getControlToPaginate())===$targetControl)
{
$pager->reset();
$pager->setCurrentPageIndex($dataSource->getCurrentPageIndex());
$customPaging=$dataSource->getAllowCustomPaging();
$pager->setAllowCustomPaging($customPaging);
$pager->setViewState('ItemCount',$dataSource->getDataSourceCount());
if($customPaging)
$pager->setVirtualItemCount($dataSource->getVirtualItemCount());
$pager->buildPager($dataSource);
}
}
}
/**
* Builds the pager content based on the pager mode.
* Current implementation includes building 'NextPrev', 'Numeric' and 'List' pagers.
* Derived classes may override this method to provide additional pagers.
* @param TPagedDataSource data source bound to the target control
*/
protected function buildPager($dataSource)
{
switch($this->getMode())
{
case 'NextPrev':
$this->buildNextPrevPager($dataSource);
break;
case 'Numeric':
$this->buildNumericPager($dataSource);
break;
case 'List':
$this->buildListPager($dataSource);
break;
}
}
/**
* Creates a pager button.
* Depending on the button type, a TLinkButton or a TButton may be created.
* If it is enabled (clickable), its command name and parameter will also be set.
* Derived classes may override this method to create additional types of buttons, such as TImageButton.
* @param string button type, either LinkButton or PushButton
* @param boolean whether the button should be enabled
* @param string caption of the button
* @param string CommandName corresponding to the OnCommand event of the button
* @param string CommandParameter corresponding to the OnCommand event of the button
* @return mixed the button instance
*/
protected function createPagerButton($buttonType,$enabled,$text,$commandName,$commandParameter)
{
if($buttonType==='LinkButton')
{
if($enabled)
$button=new TLinkButton;
else
{
$button=new TLabel;
$button->setText($text);
return $button;
}
}
else
{
$button=new TButton;
if(!$enabled)
$button->setEnabled(false);
}
$button->setText($text);
$button->setCommandName($commandName);
$button->setCommandParameter($commandParameter);
$button->setCausesValidation(false);
return $button;
}
/**
* Builds a next-prev pager
* @param TPagedDataSource data source bound to the pager
*/
protected function buildNextPrevPager($dataSource)
{
$buttonType=$this->getButtonType();
$controls=$this->getControls();
if($dataSource->getIsFirstPage())
{
if(($text=$this->getFirstPageText())!=='')
{
$label=$this->createPagerButton($buttonType,false,$text,'','');
$controls->add($label);
$controls->add("\n");
}
$label=$this->createPagerButton($buttonType,false,$this->getPrevPageText(),'','');
$controls->add($label);
}
else
{
if(($text=$this->getFirstPageText())!=='')
{
$button=$this->createPagerButton($buttonType,true,$text,self::CMD_PAGE_FIRST,'');
$controls->add($button);
$controls->add("\n");
}
$button=$this->createPagerButton($buttonType,true,$this->getPrevPageText(),self::CMD_PAGE_PREV,'');
$controls->add($button);
}
$controls->add("\n");
if($dataSource->getIsLastPage())
{
$label=$this->createPagerButton($buttonType,false,$this->getNextPageText(),'','');
$controls->add($label);
if(($text=$this->getLastPageText())!=='')
{
$controls->add("\n");
$label=$this->createPagerButton($buttonType,false,$text,'','');
$controls->add($label);
}
}
else
{
$button=$this->createPagerButton($buttonType,true,$this->getNextPageText(),self::CMD_PAGE_NEXT,'');
$controls->add($button);
if(($text=$this->getLastPageText())!=='')
{
$controls->add("\n");
$button=$this->createPagerButton($buttonType,true,$text,self::CMD_PAGE_LAST,'');
$controls->add($button);
}
}
}
/**
* Builds a numeric pager
* @param TPagedDataSource data source bound to the pager
*/
protected function buildNumericPager($dataSource)
{
$buttonType=$this->getButtonType();
$controls=$this->getControls();
$pageCount=$dataSource->getPageCount();
$pageIndex=$dataSource->getCurrentPageIndex()+1;
$maxButtonCount=$this->getPageButtonCount();
$buttonCount=$maxButtonCount>$pageCount?$pageCount:$maxButtonCount;
$startPageIndex=1;
$endPageIndex=$buttonCount;
if($pageIndex>$endPageIndex)
{
$startPageIndex=((int)(($pageIndex-1)/$maxButtonCount))*$maxButtonCount+1;
if(($endPageIndex=$startPageIndex+$maxButtonCount-1)>$pageCount)
$endPageIndex=$pageCount;
if($endPageIndex-$startPageIndex+1<$maxButtonCount)
{
if(($startPageIndex=$endPageIndex-$maxButtonCount+1)<1)
$startPageIndex=1;
}
}
if($startPageIndex>1)
{
if(($text=$this->getFirstPageText())!=='')
{
$button=$this->createPagerButton($buttonType,true,$text,self::CMD_PAGE_FIRST,'');
$controls->add($button);
$controls->add("\n");
}
$prevPageIndex=$startPageIndex-1;
$button=$this->createPagerButton($buttonType,true,$this->getPrevPageText(),self::CMD_PAGE,"$prevPageIndex");
$controls->add($button);
$controls->add("\n");
}
for($i=$startPageIndex;$i<=$endPageIndex;++$i)
{
if($i===$pageIndex)
{
$label=$this->createPagerButton($buttonType,false,"$i",'','');
$controls->add($label);
}
else
{
$button=$this->createPagerButton($buttonType,true,"$i",self::CMD_PAGE,"$i");
$controls->add($button);
}
if($i<$endPageIndex)
$controls->add("\n");
}
if($pageCount>$endPageIndex)
{
$controls->add("\n");
$nextPageIndex=$endPageIndex+1;
$button=$this->createPagerButton($buttonType,true,$this->getNextPageText(),self::CMD_PAGE,"$nextPageIndex");
$controls->add($button);
if(($text=$this->getLastPageText())!=='')
{
$controls->add("\n");
$button=$this->createPagerButton($buttonType,true,$text,self::CMD_PAGE_LAST,'');
$controls->add($button);
}
}
}
/**
* Builds a dropdown list pager
* @param TPagedDataSource data source bound to the pager
*/
protected function buildListPager($dataSource)
{
$list=new TDropDownList;
$this->getControls()->add($list);
$list->setDataSource(range(1,$dataSource->getPageCount()));
$list->dataBind();
$list->setSelectedIndex($dataSource->getCurrentPageIndex());
$list->setAutoPostBack(true);
$list->attachEventHandler('OnSelectedIndexChanged',array($this,'listIndexChanged'));
}
/**
* Event handler to the OnSelectedIndexChanged event of the dropdown list.
* This handler will raise {@link onPageIndexChanged OnPageIndexChanged} event.
* @param TDropDownList the dropdown list control raising the event
* @param TEventParameter event parameter
*/
public function listIndexChanged($sender,$param)
{
$pageIndex=$sender->getSelectedIndex();
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,$pageIndex));
}
/**
* This event is raised when page index is changed due to a page button click.
* @param TPagerPageChangedEventParameter event parameter
*/
public function onPageIndexChanged($param)
{
$this->raiseEvent('OnPageIndexChanged',$this,$param);
}
/**
* Processes a bubbled event.
* This method overrides parent's implementation by wrapping event parameter
* for <b>OnCommand</b> event with item information.
* @param TControl the sender of the event
* @param TEventParameter event parameter
* @return boolean whether the event bubbling should stop here.
*/
public function bubbleEvent($sender,$param)
{
if($param instanceof TCommandEventParameter)
{
$command=$param->getCommandName();
if(strcasecmp($command,self::CMD_PAGE)===0)
{
$pageIndex=TPropertyValue::ensureInteger($param->getCommandParameter())-1;
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,$pageIndex));
return true;
}
else if(strcasecmp($command,self::CMD_PAGE_NEXT)===0)
{
$pageIndex=$this->getCurrentPageIndex()+1;
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,$pageIndex));
return true;
}
else if(strcasecmp($command,self::CMD_PAGE_PREV)===0)
{
$pageIndex=$this->getCurrentPageIndex()-1;
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,$pageIndex));
return true;
}
else if(strcasecmp($command,self::CMD_PAGE_FIRST)===0)
{
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,0));
return true;
}
else if(strcasecmp($command,self::CMD_PAGE_LAST)===0)
{
$this->onPageIndexChanged(new TPagerPageChangedEventParameter($sender,$this->getPageCount()-1));
return true;
}
return false;
}
else
return false;
}
}
/**
* TPagerPageChangedEventParameter class
*
* TPagerPageChangedEventParameter encapsulates the parameter data for
* {@link TPager::onPageIndexChanged PageIndexChanged} event of {@link TPager} controls.
*
* The {@link getCommandSource CommandSource} property refers to the control
* that originally raises the OnCommand event, while {@link getNewPageIndex NewPageIndex}
* returns the new page index carried with the page command.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
* @since 3.0.2
*/
class TPagerPageChangedEventParameter extends TEventParameter
{
/**
* @var integer new page index
*/
private $_newIndex;
/**
* @var TControl original event sender
*/
private $_source=null;
/**
* Constructor.
* @param TControl the control originally raises the <b>OnCommand</b> event.
* @param integer new page index
*/
public function __construct($source,$newPageIndex)
{
$this->_source=$source;
$this->_newIndex=$newPageIndex;
}
/**
* @return TControl the control originally raises the <b>OnCommand</b> event.
*/
public function getCommandSource()
{
return $this->_source;
}
/**
* @return integer new page index
*/
public function getNewPageIndex()
{
return $this->_newIndex;
}
}
?>
|