From 045b8b2a21873b8747fde66890b094f63c095c93 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 5 Feb 2006 06:35:32 +0000 Subject: Added a demo of TDataGrid showing custom paging. --- framework/Collections/TPagedDataSource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Collections/TPagedDataSource.php') 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'); } /** -- cgit v1.2.3