summaryrefslogtreecommitdiff
path: root/framework/TPropertyValue.php
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/TPropertyValue.php
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/TPropertyValue.php')
-rw-r--r--framework/TPropertyValue.php6
1 files changed, 4 insertions, 2 deletions
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