summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
commite4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch)
tree50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/Web/UI/TPage.php
parent5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (diff)
More namespace changes
Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 8dc1f1e7..796d71cd 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -22,6 +22,10 @@ use Prado\Prado;
use Prado\TPropertyValue;
use Prado\Web\UI\ActiveControls\TActivePageAdapter;
use Prado\Web\UI\ActiveControls\TCallbackClientScript;
+use Prado\Web\UI\WebControls\THead;
+
+Prado::using('System.Web.UI.*');
+Prado::using('System.Web.UI.WebControls.*');
/**
* TPage class
@@ -593,11 +597,9 @@ class TPage extends TTemplateControl
if(!$this->_clientScript) {
$className = $classPath = $this->getService()->getClientScriptManagerClass();
Prado::using($className);
- if(($pos=strrpos($className,'.'))!==false)
- $className=substr($className,$pos+1);
- if(!class_exists($className,false) || ($className!=='TClientScriptManager' && !is_subclass_of($className,'TClientScriptManager')))
- throw new THttpException(404,'page_csmanagerclass_invalid',$classPath);
+ if($className!=='\Prado\Web\UI\TClientScriptManager' && !is_subclass_of($className,'\Prado\Web\UI\TClientScriptManager'))
+ throw new THttpException(404,'page_csmanagerclass_invalid',$className);
$this->_clientScript=new $className($this);
}
@@ -873,7 +875,7 @@ class TPage extends TTemplateControl
continue;
else if($control=$this->findControl($key))
{
- if($control instanceof IPostBackDataHandler)
+ if($control instanceof \Prado\Web\UI\IPostBackDataHandler)
{
if($control->loadPostData($key,$postData))
$this->_controlsPostDataChanged[]=$control;
@@ -893,7 +895,7 @@ class TPage extends TTemplateControl
{
if($control=$this->findControl($key))
{
- if($control instanceof IPostBackDataHandler)
+ if($control instanceof \Prado\Web\UI\IPostBackDataHandler)
{
if($control->loadPostData($key,$this->_postData))
$this->_controlsPostDataChanged[]=$control;