diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
commit | 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch) | |
tree | e870d29e21c14d5b1683d638dff978afe0a104fa /framework/Data/SqlMap/Statements | |
parent | 53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff) |
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Data/SqlMap/Statements')
7 files changed, 9 insertions, 9 deletions
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; |