framework/Web/UI/WebControls/TDataList.php 1 location
|
@@ 1357-1365 (lines=9) @@
|
| 1354 |
|
* Saves item count in viewstate. |
| 1355 |
|
* This method is invoked right before control state is to be saved. |
| 1356 |
|
*/ |
| 1357 |
|
public function saveState() |
| 1358 |
|
{ |
| 1359 |
|
parent::saveState(); |
| 1360 |
|
if ($this->_items) { |
| 1361 |
|
$this->setViewState('ItemCount', $this->_items->getCount(), 0); |
| 1362 |
|
} else { |
| 1363 |
|
$this->clearViewState('ItemCount'); |
| 1364 |
|
} |
| 1365 |
|
} |
| 1366 |
|
|
| 1367 |
|
/** |
| 1368 |
|
* Loads item count information from viewstate. |
framework/Web/UI/WebControls/TListControl.php 1 location
|
@@ 276-284 (lines=9) @@
|
| 273 |
|
* Saves items into viewstate. |
| 274 |
|
* This method is invoked right before control state is to be saved. |
| 275 |
|
*/ |
| 276 |
|
public function saveState() |
| 277 |
|
{ |
| 278 |
|
parent::saveState(); |
| 279 |
|
if ($this->_items) { |
| 280 |
|
$this->setViewState('Items', $this->_items->saveState(), null); |
| 281 |
|
} else { |
| 282 |
|
$this->clearViewState('Items'); |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* Loads items from viewstate. |
framework/Web/UI/WebControls/TRepeater.php 1 location
|
@@ 588-596 (lines=9) @@
|
| 585 |
|
* Saves item count in viewstate. |
| 586 |
|
* This method is invoked right before control state is to be saved. |
| 587 |
|
*/ |
| 588 |
|
public function saveState() |
| 589 |
|
{ |
| 590 |
|
parent::saveState(); |
| 591 |
|
if ($this->_items) { |
| 592 |
|
$this->setViewState('ItemCount', $this->_items->getCount(), 0); |
| 593 |
|
} else { |
| 594 |
|
$this->clearViewState('ItemCount'); |
| 595 |
|
} |
| 596 |
|
} |
| 597 |
|
|
| 598 |
|
/** |
| 599 |
|
* Loads item count information from viewstate. |