summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-17 14:48:12 -0800
committerDaniel <darthdaniel85@gmail.com>2013-11-17 14:48:12 -0800
commit7a047bedd98b47a82263e81bf62ef3890947f6ac (patch)
treeb5c80dedfb863465d9ed615cb9de21cb29789fb2 /framework/Web/UI
parentb0c2fecd42bd8b95f2535a525b035f27aebde287 (diff)
Micro-optimizations:
Removing unnecessary static functions serialize and unserialize from PradoBase and updating its dependencies with the native php's.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TPage.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 4e8652f4..394229da 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -1275,9 +1275,9 @@ class TPageStateFormatter
{
$sm=$page->getApplication()->getSecurityManager();
if($page->getEnableStateValidation())
- $str=$sm->hashData(Prado::serialize($data));
+ $str=$sm->hashData(serialize($data));
else
- $str=Prado::serialize($data);
+ $str=serialize($data);
if($page->getEnableStateCompression() && extension_loaded('zlib'))
$str=gzcompress($str);
if($page->getEnableStateEncryption())
@@ -1305,10 +1305,10 @@ class TPageStateFormatter
if($page->getEnableStateValidation())
{
if(($str=$sm->validateData($str))!==false)
- return Prado::unserialize($str);
+ return unserialize($str);
}
else
- return Prado::unserialize($str);
+ return unserialize($str);
}
return null;
}