summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TClientScriptManager.php4
-rw-r--r--framework/Web/UI/TControlAdapter.php2
-rw-r--r--framework/Web/UI/THtmlWriter.php4
-rw-r--r--framework/Web/UI/TPageStatePersister.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 1ea4175d..39c23b99 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -20,7 +20,7 @@ Prado::using('System.Web.Javascripts.*');
* @package System.Web.UI
* @since 3.0
*/
-class TClientScriptManager extends TComponent
+class TClientScriptManager extends TApplicationComponent
{
const SCRIPT_DIR='Web/Javascripts/js';
//const POSTBACK_FUNC='Prado.doPostBack';
@@ -123,7 +123,7 @@ class TClientScriptManager extends TComponent
//create the client script url
$url = $this->publishClientScriptCompressorAsset();
$url .= '?js='.implode(',', $scripts);
- if(Prado::getApplication()->getMode() == TApplication::STATE_DEBUG)
+ if($this->getApplication()->getMode() == TApplication::STATE_DEBUG)
$url .= '&__nocache';
$this->registerScriptFile('prado:gzipscripts', $url);
}
diff --git a/framework/Web/UI/TControlAdapter.php b/framework/Web/UI/TControlAdapter.php
index f0663966..732cf470 100644
--- a/framework/Web/UI/TControlAdapter.php
+++ b/framework/Web/UI/TControlAdapter.php
@@ -21,7 +21,7 @@
* @package System.Web.UI
* @since 3.0
*/
-class TControlAdapter extends TComponent
+class TControlAdapter extends TApplicationComponent
{
/**
* @var TControl the control to which the adapter is attached
diff --git a/framework/Web/UI/THtmlWriter.php b/framework/Web/UI/THtmlWriter.php
index dc867b77..2f1f8c1a 100644
--- a/framework/Web/UI/THtmlWriter.php
+++ b/framework/Web/UI/THtmlWriter.php
@@ -16,13 +16,13 @@
// implment encoding (for text and url)
/**
* THtmlWriter class
- *
+ *
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Web.UI
* @since 3.0
*/
-class THtmlWriter extends TComponent implements ITextWriter
+class THtmlWriter extends TApplicationComponent implements ITextWriter
{
const TAG_INLINE=0;
const TAG_NONCLOSING=1;
diff --git a/framework/Web/UI/TPageStatePersister.php b/framework/Web/UI/TPageStatePersister.php
index 49321ff5..b16d9f7d 100644
--- a/framework/Web/UI/TPageStatePersister.php
+++ b/framework/Web/UI/TPageStatePersister.php
@@ -28,7 +28,7 @@
* @package System.Web.UI
* @since 3.0
*/
-class TPageStatePersister extends TComponent implements IPageStatePersister
+class TPageStatePersister extends TApplicationComponent implements IPageStatePersister
{
private $_page;