From 47ef532b8fca6e9b8935c97aaae3253672b8455e Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 16 Dec 2005 15:26:03 +0000 Subject: Fixed name of TConfigurationException. --- framework/Web/UI/TClientScriptManager.php | 6 +++--- framework/Web/UI/TPage.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'framework') diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index 6106cfbf..9537859d 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -104,7 +104,7 @@ class TClientScriptManager extends TComponent if(($form=$this->_page->getForm())!==null) $formID=$form->getClientID(); else - throw new TInvalidConfigurationException('clientscriptmanager_form_required'); + throw new TConfigurationException('clientscriptmanager_form_required'); $postback=self::POSTBACK_FUNC.'(\''.$formID.'\',\''.$control->getUniqueID().'\',\''.THttpUtility::quoteJavaScriptString($parameter).'\')'; if($options && $options->getAutoPostBack()) $postback='setTimeout(\''.THttpUtility::quoteJavaScriptString($postback).'\',0)'; @@ -156,7 +156,7 @@ class TClientScriptManager extends TComponent if(($form=$this->_page->getForm())!==null) $formID=$form->getClientID(); else - throw new TInvalidConfigurationException('clientscriptmanager_form_required'); + throw new TConfigurationException('clientscriptmanager_form_required'); $postback=self::POSTBACK_FUNC.'(\''.$formID.'\',\''.$control->getUniqueID().'\',\''.THttpUtility::quoteJavaScriptString($parameter).'\''.$opt.')'; if($options && $options->getAutoPostBack()) $postback='setTimeout(\''.THttpUtility::quoteJavaScriptString($postback).'\',0)'; @@ -172,7 +172,7 @@ class TClientScriptManager extends TComponent else { $base = Prado::getFrameworkPath(); - $clientScripts = self::SCRIPT_DIR; + $clientScripts = self::SCRIPT_DIR; $file = "{$base}/{$clientScripts}/{$scriptFile}.js"; $assetManager = $this->_page->getService()->getAssetManager(); $url= $assetManager->publishFilePath($file); diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 8d2c9686..e01cb7f5 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -677,12 +677,12 @@ class TPage extends TTemplateControl /** * Ensures the control is rendered within a form. * @param TControl the control to be rendered - * @throws TInvalidConfigurationException if the control is outside of the form + * @throws TConfigurationException if the control is outside of the form */ public function ensureRenderInForm($control) { if(!$this->_inFormRender) - throw new TInvalidConfigurationException('page_control_outofform',get_class($control),$control->getID(false)); + throw new TConfigurationException('page_control_outofform',get_class($control),$control->getID(false)); } /** @@ -691,7 +691,7 @@ class TPage extends TTemplateControl public function beginFormRender($writer) { if($this->_formRendered) - throw new TInvalidConfigurationException('page_singleform_required'); + throw new TConfigurationException('page_singleform_required'); $this->_formRendered=true; $this->_inFormRender=true; $cs=$this->getClientScript(); -- cgit v1.2.3