From e4999b25052d1ad9400a0f9fd5289a49eea1bddc Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 25 Jan 2015 20:04:57 +0100 Subject: More namespace changes Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running --- framework/Web/UI/WebControls/TRepeaterItemCollection.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TRepeaterItemCollection.php') diff --git a/framework/Web/UI/WebControls/TRepeaterItemCollection.php b/framework/Web/UI/WebControls/TRepeaterItemCollection.php index 35715757..1f3a49af 100644 --- a/framework/Web/UI/WebControls/TRepeaterItemCollection.php +++ b/framework/Web/UI/WebControls/TRepeaterItemCollection.php @@ -10,6 +10,7 @@ */ namespace Prado\Web\UI\WebControls; +use Prado\Exceptions\TInvalidDataTypeException; /** * TRepeaterItemCollection class. @@ -20,7 +21,7 @@ namespace Prado\Web\UI\WebControls; * @package Prado\Web\UI\WebControls * @since 3.0 */ -class TRepeaterItemCollection extends TList +class TRepeaterItemCollection extends \Prado\Collections\TList { /** * Inserts an item at the specified position. @@ -31,7 +32,7 @@ class TRepeaterItemCollection extends TList */ public function insertAt($index,$item) { - if($item instanceof TControl) + if($item instanceof \Prado\Web\UI\TControl) parent::insertAt($index,$item); else throw new TInvalidDataTypeException('repeateritemcollection_item_invalid'); -- cgit v1.2.3