diff options
author | xue <> | 2006-02-05 06:35:32 +0000 |
---|---|---|
committer | xue <> | 2006-02-05 06:35:32 +0000 |
commit | 045b8b2a21873b8747fde66890b094f63c095c93 (patch) | |
tree | 58c4b4e7f4e146b96826f12d7e2b07dd7ef0b3fd /framework/Collections | |
parent | ec7a31cfd6c72aa8ed055504b381edee6c547186 (diff) |
Added a demo of TDataGrid showing custom paging.
Diffstat (limited to 'framework/Collections')
-rw-r--r-- | framework/Collections/TPagedDataSource.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Collections/TPagedDataSource.php b/framework/Collections/TPagedDataSource.php index 02c15b64..6192b1f7 100644 --- a/framework/Collections/TPagedDataSource.php +++ b/framework/Collections/TPagedDataSource.php @@ -152,7 +152,7 @@ class TPagedDataSource extends TComponent implements IteratorAggregate /**
* @return integer user-assigned number of items in data source Defaults to 0.
*/
- public function getVirtualCount()
+ public function getVirtualItemCount()
{
return $this->_virtualCount;
}
@@ -160,12 +160,12 @@ class TPagedDataSource extends TComponent implements IteratorAggregate /**
* @param integer user-assigned number of items in data source
*/
- public function setVirtualCount($value)
+ public function setVirtualItemCount($value)
{
if(($value=TPropertyValue::ensureInteger($value))>=0)
$this->_virtualCount=$value;
else
- throw new TInvalidDataValueException('pageddatasource_virtualcount_invalid');
+ throw new TInvalidDataValueException('pageddatasource_virtualitemcount_invalid');
}
/**
|