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