From 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 22 Jan 2015 09:14:12 +0100 Subject: Apply namespaces to class inheritances (pt1) --- framework/Collections/TPagedDataSource.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/Collections/TPagedDataSource.php') diff --git a/framework/Collections/TPagedDataSource.php b/framework/Collections/TPagedDataSource.php index db929048..92a9898e 100644 --- a/framework/Collections/TPagedDataSource.php +++ b/framework/Collections/TPagedDataSource.php @@ -10,6 +10,9 @@ */ namespace Prado\Collections; +use Prado\Exceptions\TInvalidDataTypeException; +use Prado\Exceptions\TInvalidDataValueException; +use Prado\TPropertyValue; /** * TPagedDataSource class @@ -28,7 +31,7 @@ namespace Prado\Collections; * @package Prado\Collections * @since 3.0 */ -class TPagedDataSource extends TComponent implements IteratorAggregate,Countable +class TPagedDataSource extends \Prado\TComponent implements \IteratorAggregate, \Countable { /** * @var mixed original data source @@ -72,7 +75,7 @@ class TPagedDataSource extends TComponent implements IteratorAggregate,Countable { if(is_array($value)) $value=new TMap($value); - else if($value instanceof Traversable) + else if($value instanceof \Traversable) $value=new TList($value); else if($value!==null) throw new TInvalidDataTypeException('pageddatasource_datasource_invalid'); @@ -184,7 +187,7 @@ class TPagedDataSource extends TComponent implements IteratorAggregate,Countable /** * Returns the number of items in the current page. - * This method is required by Countable interface. + * This method is required by \Countable interface. * @return integer number of items in the current page. */ public function count() -- cgit v1.2.3