From 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 22 Jan 2015 09:14:12 +0100 Subject: Apply namespaces to class inheritances (pt1) --- framework/TPropertyValue.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/TPropertyValue.php') diff --git a/framework/TPropertyValue.php b/framework/TPropertyValue.php index a920cc4a..8c106f82 100644 --- a/framework/TPropertyValue.php +++ b/framework/TPropertyValue.php @@ -14,6 +14,8 @@ */ namespace Prado; +use Prado\Exceptions\TInvalidDataValueException; +use Prado\Web\Javascripts\TJavascript; /** * TPropertyValue class @@ -74,7 +76,7 @@ class TPropertyValue */ public static function ensureString($value) { - if (TJavaScript::isJsLiteral($value)) + if (TJavascript::isJsLiteral($value)) return $value; if (is_bool($value)) return $value?'true':'false'; @@ -161,7 +163,7 @@ class TPropertyValue if(func_num_args()===2 && is_string($enums)) { if(!isset($types[$enums])) - $types[$enums]=new ReflectionClass($enums); + $types[$enums]=new \ReflectionClass($enums); if($types[$enums]->hasConstant($value)) return $value; else -- cgit v1.2.3