summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TJavascriptLogger.php
diff options
context:
space:
mode:
authorxue <>2006-03-05 00:03:10 +0000
committerxue <>2006-03-05 00:03:10 +0000
commit7cd0bdea1d094485ae197fd80297791555c08d1c (patch)
treeeaecfa8bc307fd768271dfabb2b495254d9b5b15 /framework/Web/UI/WebControls/TJavascriptLogger.php
parent8f832dcba3ca846b5ef22cb8c4b3168d744f5418 (diff)
Some minor updates.
Diffstat (limited to 'framework/Web/UI/WebControls/TJavascriptLogger.php')
-rw-r--r--framework/Web/UI/WebControls/TJavascriptLogger.php23
1 files changed, 8 insertions, 15 deletions
diff --git a/framework/Web/UI/WebControls/TJavascriptLogger.php b/framework/Web/UI/WebControls/TJavascriptLogger.php
index c38f7bc4..3196d3b6 100644
--- a/framework/Web/UI/WebControls/TJavascriptLogger.php
+++ b/framework/Web/UI/WebControls/TJavascriptLogger.php
@@ -1,18 +1,12 @@
<?php
/**
- * TJavascriptLogger component class file.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the BSD License.
- *
- * Copyright(c) 2004 by Wei Zhuo. All rights reserved.
- *
- * To contact the author write to {@link mailto:weizhuo[at]gmail[dot]com Wei Zhuo}
- * The latest version of PRADO can be obtained from:
- * {@link http://prado.sourceforge.net/}
+ * TJavascriptLogger class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Revision: 1.2 $ $Date: 2005/11/06 23:02:33 $
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
*/
@@ -32,13 +26,12 @@
* http://gleepglop.com/javascripts/logger/
*
* @author Wei Zhuo<weizhuo[at]gmail[dot]com>
- * @version $Revision: 1.2 $ $Date: 2005/11/06 23:02:33 $
+ * @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
- * @since 2.0.2
+ * @since 3.0
*/
class TJavascriptLogger extends TWebControl
{
-
/**
* @return string tag name of the panel
*/
@@ -54,7 +47,7 @@ class TJavascriptLogger extends TWebControl
*/
public function renderContents($writer)
{
- $this->Page->ClientScript->registerPradoScript('logger');
+ $this->getPage()->getClientScript()->registerPradoScript('logger');
$info = '(<a href="http://gleepglop.com/javascripts/logger/" target="_blank">more info</a>).';
$usage = 'Press ALT-D (Or CTRL-D on OS X) to toggle the javascript log console';
$writer->write("{$usage} {$info}");