diff options
author | xue <> | 2005-12-16 15:26:03 +0000 |
---|---|---|
committer | xue <> | 2005-12-16 15:26:03 +0000 |
commit | 47ef532b8fca6e9b8935c97aaae3253672b8455e (patch) | |
tree | 835e4e717bec50122ba383dea940b39550edcc8b | |
parent | 1d1e6bc5b41c9a95c4ada79b12aeba149887d92e (diff) |
Fixed name of TConfigurationException.
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 6 | ||||
-rw-r--r-- | framework/Web/UI/TPage.php | 6 |
2 files changed, 6 insertions, 6 deletions
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();
|