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/TTemplateColumn.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'framework/Web/UI/WebControls/TTemplateColumn.php') diff --git a/framework/Web/UI/WebControls/TTemplateColumn.php b/framework/Web/UI/WebControls/TTemplateColumn.php index ee000a04..b0b7167a 100644 --- a/framework/Web/UI/WebControls/TTemplateColumn.php +++ b/framework/Web/UI/WebControls/TTemplateColumn.php @@ -10,11 +10,7 @@ */ namespace Prado\Web\UI\WebControls; - -/** - * TDataGridColumn class file - */ -Prado::using('System.Web.UI.WebControls.TDataGridColumn'); +use Prado\Exceptions\TInvalidDataTypeException; /** * TTemplateColumn class @@ -63,7 +59,7 @@ class TTemplateColumn extends TDataGridColumn * * If not empty, the class will be used to instantiate as a child control in the item cells of the column. * - * If the class implements {@link IDataRenderer}, the Data property + * If the class implements {@link \Prado\IDataRenderer}, the Data property * will be set as the row of the data associated with the datagrid item that this cell resides in. * * @param string the renderer class name in namespace format. @@ -88,7 +84,7 @@ class TTemplateColumn extends TDataGridColumn * * If not empty, the class will be used to instantiate as a child control in the item cell that is in edit mode. * - * If the class implements {@link IDataRenderer}, the Data property + * If the class implements {@link \Prado\IDataRenderer}, the Data property * will be set as the row of the data associated with the datagrid item that this cell resides in. * * @param string the renderer class name in namespace format. @@ -214,7 +210,7 @@ class TTemplateColumn extends TDataGridColumn $control->setItemIndex($cell->getParent()->getItemIndex()); $control->setItemType($itemType); } - if($control instanceof IDataRenderer) + if($control instanceof \Prado\IDataRenderer) $control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); } else if($template!==null) -- cgit v1.2.3