summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/Data
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php6
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php2
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php2
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordGateway.php2
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordManager.php2
-rw-r--r--framework/Data/Common/Oracle/TOracleTableInfo.php2
-rw-r--r--framework/Data/Common/TDbCommandBuilder.php2
-rw-r--r--framework/Data/Common/TDbMetaData.php2
-rw-r--r--framework/Data/Common/TDbTableColumn.php2
-rw-r--r--framework/Data/Common/TDbTableInfo.php2
-rw-r--r--framework/Data/DataGateway/TDataGatewayCommand.php2
-rw-r--r--framework/Data/DataGateway/TDataGatewayEventParameter.php2
-rw-r--r--framework/Data/DataGateway/TDataGatewayResultEventParameter.php2
-rw-r--r--framework/Data/DataGateway/TSqlCriteria.php8
-rw-r--r--framework/Data/DataGateway/TTableGateway.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TDiscriminator.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TParameterMap.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TParameterProperty.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TResultMap.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TResultProperty.php12
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php2
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapStatement.php10
-rw-r--r--framework/Data/SqlMap/Configuration/TSubMap.php2
-rw-r--r--framework/Data/SqlMap/DataMapper/TPropertyAccess.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php2
-rw-r--r--framework/Data/SqlMap/Statements/TCachingStatement.php2
-rw-r--r--framework/Data/SqlMap/Statements/TMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TPreparedStatement.php2
-rw-r--r--framework/Data/SqlMap/Statements/TResultSetListItemParameter.php2
-rw-r--r--framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php2
-rw-r--r--framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php2
-rw-r--r--framework/Data/SqlMap/Statements/TStaticSql.php2
-rw-r--r--framework/Data/SqlMap/TSqlMapGateway.php2
-rw-r--r--framework/Data/SqlMap/TSqlMapManager.php2
-rw-r--r--framework/Data/TDataSourceConfig.php2
-rw-r--r--framework/Data/TDbCommand.php2
-rw-r--r--framework/Data/TDbConnection.php2
-rw-r--r--framework/Data/TDbDataReader.php2
-rw-r--r--framework/Data/TDbTransaction.php2
39 files changed, 57 insertions, 57 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php
index cd115cbe..e9c79e1a 100644
--- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php
+++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php
@@ -77,7 +77,7 @@ abstract class TActiveRecordRelation
$results = call_user_func_array(array($this->getSourceRecord(),$method),$args);
$validArray = is_array($results) && count($results) > 0;
- if($validArray || $results instanceof ArrayAccess || $results instanceof TActiveRecord)
+ if($validArray || $results instanceof \ArrayAccess || $results instanceof TActiveRecord)
{
$this->collectForeignObjects($results);
while($obj = array_pop($stack))
@@ -193,7 +193,7 @@ abstract class TActiveRecordRelation
*/
protected function getIndexValues($keys, $results)
{
- if(!is_array($results) && !$results instanceof ArrayAccess)
+ if(!is_array($results) && !$results instanceof \ArrayAccess)
$results = array($results);
$values=array();
foreach($results as $result)
@@ -229,7 +229,7 @@ abstract class TActiveRecordRelation
*/
protected function setResultCollection(&$results, &$collections, $properties)
{
- if(is_array($results) || $results instanceof ArrayAccess)
+ if(is_array($results) || $results instanceof \ArrayAccess)
{
for($i=0,$k=count($results);$i<$k;$i++)
$this->setObjectProperty($results[$i], $properties, $collections);
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 8b295c2f..e8fcbb9a 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -146,7 +146,7 @@ Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelationContext');
* @package Prado\Data\ActiveRecord
* @since 3.1
*/
-abstract class TActiveRecord extends TComponent
+abstract class TActiveRecord extends \Prado\TComponent
{
const BELONGS_TO='BELONGS_TO';
const HAS_ONE='HAS_ONE';
diff --git a/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php b/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php
index 95f923df..7ee35aed 100644
--- a/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php
+++ b/framework/Data/ActiveRecord/TActiveRecordChangeEventParameter.php
@@ -24,7 +24,7 @@ namespace Prado\Data\ActiveRecord;
* @package Prado\Data\ActiveRecord
* @since 3.1.2
*/
-class TActiveRecordChangeEventParameter extends TEventParameter
+class TActiveRecordChangeEventParameter extends \Prado\TEventParameter
{
private $_isValid=true;
diff --git a/framework/Data/ActiveRecord/TActiveRecordGateway.php b/framework/Data/ActiveRecord/TActiveRecordGateway.php
index de0be08d..c4eaeb2c 100644
--- a/framework/Data/ActiveRecord/TActiveRecordGateway.php
+++ b/framework/Data/ActiveRecord/TActiveRecordGateway.php
@@ -19,7 +19,7 @@ namespace Prado\Data\ActiveRecord;
* @package Prado\Data\ActiveRecord
* @since 3.1
*/
-class TActiveRecordGateway extends TComponent
+class TActiveRecordGateway extends \Prado\TComponent
{
private $_manager;
private $_tables=array(); //table cache
diff --git a/framework/Data/ActiveRecord/TActiveRecordManager.php b/framework/Data/ActiveRecord/TActiveRecordManager.php
index 74a78e0e..63f51bfa 100644
--- a/framework/Data/ActiveRecord/TActiveRecordManager.php
+++ b/framework/Data/ActiveRecord/TActiveRecordManager.php
@@ -35,7 +35,7 @@ Prado::using('System.Data.ActiveRecord.TActiveRecordGateway');
* @package Prado\Data\ActiveRecord
* @since 3.1
*/
-class TActiveRecordManager extends TComponent
+class TActiveRecordManager extends \Prado\TComponent
{
const DEFAULT_GATEWAY_CLASS = 'System.Data.ActiveRecord.TActiveRecordGateway';
diff --git a/framework/Data/Common/Oracle/TOracleTableInfo.php b/framework/Data/Common/Oracle/TOracleTableInfo.php
index e3935d5f..d5c66ab8 100644
--- a/framework/Data/Common/Oracle/TOracleTableInfo.php
+++ b/framework/Data/Common/Oracle/TOracleTableInfo.php
@@ -19,7 +19,7 @@ namespace Prado\Data\Common\Oracle;
* @package Prado\Data\Common\Oracle
* @since 3.1
*/
-class TOracleTableInfo extends TComponent
+class TOracleTableInfo extends \Prado\TComponent
{
private $_info=array();
diff --git a/framework/Data/Common/TDbCommandBuilder.php b/framework/Data/Common/TDbCommandBuilder.php
index 0094a964..eacc4ad4 100644
--- a/framework/Data/Common/TDbCommandBuilder.php
+++ b/framework/Data/Common/TDbCommandBuilder.php
@@ -19,7 +19,7 @@ namespace Prado\Data\Common;
* @package Prado\Data\Common
* @since 3.1
*/
-class TDbCommandBuilder extends TComponent
+class TDbCommandBuilder extends \Prado\TComponent
{
private $_connection;
private $_tableInfo;
diff --git a/framework/Data/Common/TDbMetaData.php b/framework/Data/Common/TDbMetaData.php
index a34c18bf..4b289b1c 100644
--- a/framework/Data/Common/TDbMetaData.php
+++ b/framework/Data/Common/TDbMetaData.php
@@ -21,7 +21,7 @@ namespace Prado\Data\Common;
* @package Prado\Data\Common
* @since 3.1
*/
-abstract class TDbMetaData extends TComponent
+abstract class TDbMetaData extends \Prado\TComponent
{
private $_tableInfoCache=array();
private $_connection;
diff --git a/framework/Data/Common/TDbTableColumn.php b/framework/Data/Common/TDbTableColumn.php
index 1543cd46..f7c83ace 100644
--- a/framework/Data/Common/TDbTableColumn.php
+++ b/framework/Data/Common/TDbTableColumn.php
@@ -18,7 +18,7 @@ namespace Prado\Data\Common;
* @package Prado\Data\Common
* @since 3.1
*/
-class TDbTableColumn extends TComponent
+class TDbTableColumn extends \Prado\TComponent
{
const UNDEFINED_VALUE= INF; //use infinity for undefined value
diff --git a/framework/Data/Common/TDbTableInfo.php b/framework/Data/Common/TDbTableInfo.php
index 5fd6956c..a46a1b58 100644
--- a/framework/Data/Common/TDbTableInfo.php
+++ b/framework/Data/Common/TDbTableInfo.php
@@ -18,7 +18,7 @@ namespace Prado\Data\Common;
* @package Prado\Data\Common
* @since 3.1
*/
-class TDbTableInfo extends TComponent
+class TDbTableInfo extends \Prado\TComponent
{
private $_info=array();
diff --git a/framework/Data/DataGateway/TDataGatewayCommand.php b/framework/Data/DataGateway/TDataGatewayCommand.php
index 622f7683..ee380914 100644
--- a/framework/Data/DataGateway/TDataGatewayCommand.php
+++ b/framework/Data/DataGateway/TDataGatewayCommand.php
@@ -34,7 +34,7 @@ namespace Prado\Data\DataGateway;
* @package Prado\Data\DataGateway
* @since 3.1
*/
-class TDataGatewayCommand extends TComponent
+class TDataGatewayCommand extends \Prado\TComponent
{
private $_builder;
diff --git a/framework/Data/DataGateway/TDataGatewayEventParameter.php b/framework/Data/DataGateway/TDataGatewayEventParameter.php
index 0ea10f6a..20649069 100644
--- a/framework/Data/DataGateway/TDataGatewayEventParameter.php
+++ b/framework/Data/DataGateway/TDataGatewayEventParameter.php
@@ -19,7 +19,7 @@ namespace Prado\Data\DataGateway;
* @package Prado\Data\DataGateway
* @since 3.1
*/
-class TDataGatewayEventParameter extends TEventParameter
+class TDataGatewayEventParameter extends \Prado\TEventParameter
{
private $_command;
private $_criteria;
diff --git a/framework/Data/DataGateway/TDataGatewayResultEventParameter.php b/framework/Data/DataGateway/TDataGatewayResultEventParameter.php
index 05e85670..8117f21e 100644
--- a/framework/Data/DataGateway/TDataGatewayResultEventParameter.php
+++ b/framework/Data/DataGateway/TDataGatewayResultEventParameter.php
@@ -20,7 +20,7 @@ namespace Prado\Data\DataGateway;
* @package Prado\Data\DataGateway
* @since 3.1
*/
-class TDataGatewayResultEventParameter extends TEventParameter
+class TDataGatewayResultEventParameter extends \Prado\TEventParameter
{
private $_command;
private $_result;
diff --git a/framework/Data/DataGateway/TSqlCriteria.php b/framework/Data/DataGateway/TSqlCriteria.php
index f86b18dd..a962b079 100644
--- a/framework/Data/DataGateway/TSqlCriteria.php
+++ b/framework/Data/DataGateway/TSqlCriteria.php
@@ -29,7 +29,7 @@ namespace Prado\Data\DataGateway;
* @package Prado\Data\DataGateway
* @since 3.1
*/
-class TSqlCriteria extends TComponent
+class TSqlCriteria extends \Prado\TComponent
{
/**
* @var mixed
@@ -178,12 +178,12 @@ class TSqlCriteria extends TComponent
}
/**
- * @param ArrayAccess named parameters.
+ * @param \ArrayAccess named parameters.
*/
public function setParameters($value)
{
- if(!(is_array($value) || $value instanceof ArrayAccess))
- throw new TException('value must be array or ArrayAccess');
+ if(!(is_array($value) || $value instanceof \ArrayAccess))
+ throw new TException('value must be array or \ArrayAccess');
$this->_parameters->copyFrom($value);
}
diff --git a/framework/Data/DataGateway/TTableGateway.php b/framework/Data/DataGateway/TTableGateway.php
index d415df2b..68efa7f5 100644
--- a/framework/Data/DataGateway/TTableGateway.php
+++ b/framework/Data/DataGateway/TTableGateway.php
@@ -76,7 +76,7 @@ Prado::using('System.Data.DataGateway.TDataGatewayCommand');
* @package Prado\Data\DataGateway
* @since 3.1
*/
-class TTableGateway extends TComponent
+class TTableGateway extends \Prado\TComponent
{
private $_command;
private $_connection;
diff --git a/framework/Data/SqlMap/Configuration/TDiscriminator.php b/framework/Data/SqlMap/Configuration/TDiscriminator.php
index 100e1816..a5cbed30 100644
--- a/framework/Data/SqlMap/Configuration/TDiscriminator.php
+++ b/framework/Data/SqlMap/Configuration/TDiscriminator.php
@@ -25,7 +25,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TDiscriminator extends TComponent
+class TDiscriminator extends \Prado\TComponent
{
private $_column;
private $_type;
diff --git a/framework/Data/SqlMap/Configuration/TParameterMap.php b/framework/Data/SqlMap/Configuration/TParameterMap.php
index 08ca6471..d1e78984 100644
--- a/framework/Data/SqlMap/Configuration/TParameterMap.php
+++ b/framework/Data/SqlMap/Configuration/TParameterMap.php
@@ -30,7 +30,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TParameterMap extends TComponent
+class TParameterMap extends \Prado\TComponent
{
private $_extend;
private $_properties;
diff --git a/framework/Data/SqlMap/Configuration/TParameterProperty.php b/framework/Data/SqlMap/Configuration/TParameterProperty.php
index d691d1f9..ee6f8838 100644
--- a/framework/Data/SqlMap/Configuration/TParameterProperty.php
+++ b/framework/Data/SqlMap/Configuration/TParameterProperty.php
@@ -29,7 +29,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TParameterProperty extends TComponent
+class TParameterProperty extends \Prado\TComponent
{
private $_typeHandler;
private $_type;
diff --git a/framework/Data/SqlMap/Configuration/TResultMap.php b/framework/Data/SqlMap/Configuration/TResultMap.php
index d4707c5d..e183438f 100644
--- a/framework/Data/SqlMap/Configuration/TResultMap.php
+++ b/framework/Data/SqlMap/Configuration/TResultMap.php
@@ -36,7 +36,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TResultMap extends TComponent
+class TResultMap extends \Prado\TComponent
{
private $_columns;
private $_class;
diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php
index 2404d2c9..59ce44a9 100644
--- a/framework/Data/SqlMap/Configuration/TResultProperty.php
+++ b/framework/Data/SqlMap/Configuration/TResultProperty.php
@@ -33,7 +33,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TResultProperty extends TComponent
+class TResultProperty extends \Prado\TComponent
{
private $_nullValue;
private $_propertyName;
@@ -275,7 +275,7 @@ class TResultProperty extends TComponent
}
/**
- * Determines if the type is an instance of ArrayAccess, TList or an array.
+ * Determines if the type is an instance of \ArrayAccess, TList or an array.
* @return int TResultProperty::LIST_TYPE or TResultProperty::ARRAY_TYPE
*/
protected function getPropertyValueType()
@@ -308,10 +308,10 @@ class TResultProperty extends TComponent
}
/**
- * Returns true if the result property {@link Type getType()} is of ArrayAccess
- * or that the actual result object is an array or implements ArrayAccess
+ * Returns true if the result property {@link Type getType()} is of \ArrayAccess
+ * or that the actual result object is an array or implements \ArrayAccess
* @param object result object
- * @return boolean true if the result object is an instance of ArrayAccess or is an array.
+ * @return boolean true if the result object is an instance of \ArrayAccess or is an array.
*/
public function instanceOfArrayType($target)
{
@@ -319,7 +319,7 @@ class TResultProperty extends TComponent
{
$prop = TPropertyAccess::get($target,$this->getProperty());
if(is_object($prop))
- return $prop instanceof ArrayAccess;
+ return $prop instanceof \ArrayAccess;
return is_array($prop);
}
return $this->getPropertyValueType() == self::ARRAY_TYPE;
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
index 8f1aed63..393b61e6 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
@@ -32,7 +32,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TSqlMapCacheModel extends TComponent
+class TSqlMapCacheModel extends \Prado\TComponent
{
private $_cache;
private $_hits = 0;
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
index b631e1b0..7cc278b5 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
@@ -28,7 +28,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TSqlMapStatement extends TComponent
+class TSqlMapStatement extends \Prado\TComponent
{
private $_parameterMapName;
private $_parameterMap;
@@ -185,7 +185,7 @@ class TSqlMapStatement extends TComponent
}
/**
- * @return string name of a PHP class that implements ArrayAccess.
+ * @return string name of a PHP class that implements \ArrayAccess.
*/
public function getListClass()
{
@@ -193,8 +193,8 @@ class TSqlMapStatement extends TComponent
}
/**
- * An ArrayAccess class can be specified to handle the type of objects in the collection.
- * @param string name of a PHP class that implements ArrayAccess.
+ * An \ArrayAccess class can be specified to handle the type of objects in the collection.
+ * @param string name of a PHP class that implements \ArrayAccess.
*/
public function setListClass($value)
{
@@ -256,7 +256,7 @@ class TSqlMapStatement extends TComponent
/**
* @param TSqlMapTypeHandlerRegistry type handler registry
- * @return ArrayAccess new instance of list class.
+ * @return \ArrayAccess new instance of list class.
*/
public function createInstanceOfListClass($registry)
{
diff --git a/framework/Data/SqlMap/Configuration/TSubMap.php b/framework/Data/SqlMap/Configuration/TSubMap.php
index c8ec3d64..c6d01e0d 100644
--- a/framework/Data/SqlMap/Configuration/TSubMap.php
+++ b/framework/Data/SqlMap/Configuration/TSubMap.php
@@ -23,7 +23,7 @@ namespace Prado\Data\SqlMap\Configuration;
* @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
-class TSubMap extends TComponent
+class TSubMap extends \Prado\TComponent
{
private $_value;
private $_resultMapping;
diff --git a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
index d5956d9d..666f105b 100644
--- a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
+++ b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
@@ -57,7 +57,7 @@ class TPropertyAccess
$properties = explode('.', $path);
foreach($properties as $prop)
{
- if(is_array($object) || $object instanceof ArrayAccess)
+ if(is_array($object) || $object instanceof \ArrayAccess)
{
if(array_key_exists($prop, $object))
$object = $object[$prop];
@@ -94,7 +94,7 @@ class TPropertyAccess
$properties = explode('.', $path);
foreach($properties as $prop)
{
- if(is_array($object) || $object instanceof ArrayAccess)
+ if(is_array($object) || $object instanceof \ArrayAccess)
{
if(array_key_exists($prop, $object))
$object = $object[$prop];
@@ -135,7 +135,7 @@ class TPropertyAccess
else
$object = &$originalObject;
- if(is_array($object) || $object instanceof ArrayAccess)
+ if(is_array($object) || $object instanceof \ArrayAccess)
{
$object[$prop] = $value;
}
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
index 1c5c33bf..3105e80a 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
@@ -28,7 +28,7 @@ namespace Prado\Data\SqlMap\DataMapper;
* @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
-abstract class TSqlMapTypeHandler extends TComponent
+abstract class TSqlMapTypeHandler extends \Prado\TComponent
{
private $_dbType='NULL';
private $_type;
diff --git a/framework/Data/SqlMap/Statements/TCachingStatement.php b/framework/Data/SqlMap/Statements/TCachingStatement.php
index 32dde2e7..745249e4 100644
--- a/framework/Data/SqlMap/Statements/TCachingStatement.php
+++ b/framework/Data/SqlMap/Statements/TCachingStatement.php
@@ -18,7 +18,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TCachingStatement extends TComponent implements IMappedStatement
+class TCachingStatement extends \Prado\TComponent implements IMappedStatement
{
private $_mappedStatement;
diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php
index db83f755..2f7e8619 100644
--- a/framework/Data/SqlMap/Statements/TMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TMappedStatement.php
@@ -21,7 +21,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.0
*/
-class TMappedStatement extends TComponent implements IMappedStatement
+class TMappedStatement extends \Prado\TComponent implements IMappedStatement
{
/**
* @var TSqlMapStatement current SQL statement.
@@ -226,7 +226,7 @@ class TMappedStatement extends TComponent implements IMappedStatement
public function runQueryForList($connection, $parameter, $sql, $result, $delegate=null)
{
$registry=$this->getManager()->getTypeHandlers();
- $list = $result instanceof ArrayAccess ? $result :
+ $list = $result instanceof \ArrayAccess ? $result :
$this->_statement->createInstanceOfListClass($registry);
$connection->setActive(true);
$reader = $sql->query();
@@ -581,7 +581,7 @@ class TMappedStatement extends TComponent implements IMappedStatement
$resultObject = $this->_statement->createInstanceOfResultClass($registry,$row);
}
- if($resultObject instanceOf ArrayAccess)
+ if($resultObject instanceOf \ArrayAccess)
return $this->fillResultArrayList($row, $resultObject);
else if(is_object($resultObject))
return $this->fillResultObjectProperty($row, $resultObject);
diff --git a/framework/Data/SqlMap/Statements/TPreparedStatement.php b/framework/Data/SqlMap/Statements/TPreparedStatement.php
index 9084621a..b978996e 100644
--- a/framework/Data/SqlMap/Statements/TPreparedStatement.php
+++ b/framework/Data/SqlMap/Statements/TPreparedStatement.php
@@ -18,7 +18,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TPreparedStatement extends TComponent
+class TPreparedStatement extends \Prado\TComponent
{
private $_sqlString='';
private $_parameterNames;
diff --git a/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php b/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
index ec580a5a..fe954ac2 100644
--- a/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
+++ b/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
@@ -18,7 +18,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TResultSetListItemParameter extends TComponent
+class TResultSetListItemParameter extends \Prado\TComponent
{
private $_resultObject;
private $_parameterObject;
diff --git a/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php b/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
index d44cd844..53d5b9b1 100644
--- a/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
+++ b/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
@@ -18,7 +18,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TResultSetMapItemParameter extends TComponent
+class TResultSetMapItemParameter extends \Prado\TComponent
{
private $_key;
private $_value;
diff --git a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
index cc0c300b..041eda6b 100644
--- a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
+++ b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
@@ -22,7 +22,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TSqlMapObjectCollectionTree extends TComponent
+class TSqlMapObjectCollectionTree extends \Prado\TComponent
{
/**
* @var array object graph as tree
diff --git a/framework/Data/SqlMap/Statements/TStaticSql.php b/framework/Data/SqlMap/Statements/TStaticSql.php
index 445461b3..2434de59 100644
--- a/framework/Data/SqlMap/Statements/TStaticSql.php
+++ b/framework/Data/SqlMap/Statements/TStaticSql.php
@@ -18,7 +18,7 @@ namespace Prado\Data\SqlMap\Statements;
* @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
-class TStaticSql extends TComponent
+class TStaticSql extends \Prado\TComponent
{
private $_preparedStatement;
diff --git a/framework/Data/SqlMap/TSqlMapGateway.php b/framework/Data/SqlMap/TSqlMapGateway.php
index 6f548256..83f90572 100644
--- a/framework/Data/SqlMap/TSqlMapGateway.php
+++ b/framework/Data/SqlMap/TSqlMapGateway.php
@@ -27,7 +27,7 @@ Prado::using('System.Data.SqlMap.TSqlMapManager');
* @package Prado\Data\SqlMap
* @since 3.1
*/
-class TSqlMapGateway extends TComponent
+class TSqlMapGateway extends \Prado\TComponent
{
/**
* @var TSqlMapManager manager
diff --git a/framework/Data/SqlMap/TSqlMapManager.php b/framework/Data/SqlMap/TSqlMapManager.php
index 0624c4a7..55a15b72 100644
--- a/framework/Data/SqlMap/TSqlMapManager.php
+++ b/framework/Data/SqlMap/TSqlMapManager.php
@@ -41,7 +41,7 @@ Prado::using('System.Caching.TCache');
* @package Prado\Data\SqlMap
* @since 3.1
*/
-class TSqlMapManager extends TComponent
+class TSqlMapManager extends \Prado\TComponent
{
private $_mappedStatements;
private $_resultMaps;
diff --git a/framework/Data/TDataSourceConfig.php b/framework/Data/TDataSourceConfig.php
index ebe948d8..f5477d30 100644
--- a/framework/Data/TDataSourceConfig.php
+++ b/framework/Data/TDataSourceConfig.php
@@ -46,7 +46,7 @@ Prado::using('System.Data.TDbConnection');
* @package Prado\Data
* @since 3.1
*/
-class TDataSourceConfig extends TModule
+class TDataSourceConfig extends \Prado\TModule
{
private $_connID='';
private $_conn;
diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php
index 7d68fd6a..61d69b3d 100644
--- a/framework/Data/TDbCommand.php
+++ b/framework/Data/TDbCommand.php
@@ -36,7 +36,7 @@ namespace Prado\Data;
* @package Prado\Data
* @since 3.0
*/
-class TDbCommand extends TComponent
+class TDbCommand extends \Prado\TComponent
{
private $_connection;
private $_text='';
diff --git a/framework/Data/TDbConnection.php b/framework/Data/TDbConnection.php
index ed9252d0..ea07c084 100644
--- a/framework/Data/TDbConnection.php
+++ b/framework/Data/TDbConnection.php
@@ -81,7 +81,7 @@ Prado::using('System.Data.TDbCommand');
* @package Prado\Data
* @since 3.0
*/
-class TDbConnection extends TComponent
+class TDbConnection extends \Prado\TComponent
{
/**
*
diff --git a/framework/Data/TDbDataReader.php b/framework/Data/TDbDataReader.php
index 9aa5d5ca..5f8541d9 100644
--- a/framework/Data/TDbDataReader.php
+++ b/framework/Data/TDbDataReader.php
@@ -34,7 +34,7 @@ namespace Prado\Data;
* @package Prado\Data
* @since 3.0
*/
-class TDbDataReader extends TComponent implements Iterator
+class TDbDataReader extends \Prado\TComponent implements \Iterator
{
private $_statement;
private $_closed=false;
diff --git a/framework/Data/TDbTransaction.php b/framework/Data/TDbTransaction.php
index 9616d623..e9c245f9 100644
--- a/framework/Data/TDbTransaction.php
+++ b/framework/Data/TDbTransaction.php
@@ -39,7 +39,7 @@ Prado::using('System.Data.TDbDataReader');
* @package Prado\Data
* @since 3.0
*/
-class TDbTransaction extends TComponent
+class TDbTransaction extends \Prado\TComponent
{
private $_connection=null;
private $_active;