From 58498f0d70d8396ef0dc1c9e8bc4f28151771bee Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Sun, 8 Nov 2009 07:33:48 +0000 Subject: Add property ClientScriptManagerClass to TPageService and releated changes in TPage.getClientScript() to allow subclassing of TClientScriptManager --- framework/Web/Services/TPageService.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'framework/Web/Services/TPageService.php') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index e35fb0e3..d7506912 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -99,6 +99,11 @@ class TPageService extends TService * @var string base path class in namespace format */ private $_basePageClass='TPage'; + /** + * @var string clientscript manager class in namespace format + * @since 3.1.7 + */ + private $_clientScriptManagerClass='System.Web.UI.TClientScriptManager'; /** * @var string default page */ @@ -408,6 +413,25 @@ class TPageService extends TService return $this->_basePageClass; } + /** + * Sets the clientscript manager class (in namespace format). + * @param string class name + * @since 3.1.7 + */ + public function setClientScriptManagerClass($value) + { + $this->_clientScriptManagerClass=$value; + } + + /** + * @return string clientscript manager class in namespace format. Defaults to 'System.Web.UI.TClientScriptManager'. + * @since 3.1.7 + */ + public function getClientScriptManagerClass() + { + return $this->_clientScriptManagerClass; + } + /** * Runs the service. * This will create the requested page, initializes it with the property values -- cgit v1.2.3