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/TListControl.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'framework/Web/UI/WebControls/TListControl.php') diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 56bd9ac8..dac9a196 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -11,15 +11,9 @@ */ namespace Prado\Web\UI\WebControls; - -/** - * Includes the supporting classes - */ -Prado::using('System.Web.UI.WebControls.TDataBoundControl'); -Prado::using('System.Web.UI.WebControls.TListItem'); -Prado::using('System.Collections.TListItemCollection'); -Prado::using('System.Collections.TAttributeCollection'); -Prado::using('System.Util.TDataFieldAccessor'); +use Prado\TPropertyValue; +use Prado\Web\THttpUtility; +use Prado\Exceptions\TInvalidDataValueException; /** * TListControl class @@ -82,7 +76,7 @@ Prado::using('System.Util.TDataFieldAccessor'); * @package Prado\Web\UI\WebControls * @since 3.0 */ -abstract class TListControl extends TDataBoundControl implements IDataRenderer +abstract class TListControl extends TDataBoundControl implements \Prado\IDataRenderer { /** * @var TListItemCollection item list @@ -277,7 +271,7 @@ abstract class TListControl extends TDataBoundControl implements IDataRenderer */ protected function createListItemCollection() { - return new TListItemCollection; + return new \Prado\Collections\TListItemCollection; } /** @@ -552,7 +546,7 @@ abstract class TListControl extends TDataBoundControl implements IDataRenderer /** * Returns the value of the selected item with the lowest cardinal index. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link getSelectedValue()}. * @return string the value of the selected item with the lowest cardinal index, empty if no selection. * @see getSelectedValue @@ -565,7 +559,7 @@ abstract class TListControl extends TDataBoundControl implements IDataRenderer /** * Selects an item by the specified value. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link setSelectedValue()}. * @param string the value of the item to be selected. * @see setSelectedValue -- cgit v1.2.3