summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap
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/SqlMap
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Data/SqlMap')
-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
19 files changed, 32 insertions, 32 deletions
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;