summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TMultiView.php
diff options
context:
space:
mode:
authorxue <>2006-03-22 22:37:15 +0000
committerxue <>2006-03-22 22:37:15 +0000
commit4cb6d6bd3c22c18bdbe7dea29e0de9c77ebfe025 (patch)
treea951571ce6510b14111e616234495957d2010870 /framework/Web/UI/WebControls/TMultiView.php
parent600d25bfdf3405f026b78bbc19983f945b21a5df (diff)
TWizard is completed.
Diffstat (limited to 'framework/Web/UI/WebControls/TMultiView.php')
-rw-r--r--framework/Web/UI/WebControls/TMultiView.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TMultiView.php b/framework/Web/UI/WebControls/TMultiView.php
index a88fbda7..42e76349 100644
--- a/framework/Web/UI/WebControls/TMultiView.php
+++ b/framework/Web/UI/WebControls/TMultiView.php
@@ -40,6 +40,7 @@ class TMultiView extends TControl
const CMD_SWITCHVIEWID='SwitchViewID';
const CMD_SWITCHVIEWINDEX='SwitchViewIndex';
private $_cachedActiveViewIndex=-1;
+ private $_ignoreBubbleEvents=false;
/**
* Processes an object that is created during parsing template.
@@ -167,6 +168,16 @@ class TMultiView extends TControl
}
/**
+ * Makes the multiview ignore all bubbled events.
+ * This is method is used internally by framework and control
+ * developers.
+ */
+ public function ignoreBubbleEvents()
+ {
+ $this->_ignoreBubbleEvents=true;
+ }
+
+ /**
* Initializes the active view if any.
* This method overrides the parent implementation.
* @param mixed event parameter
@@ -197,7 +208,7 @@ class TMultiView extends TControl
*/
public function onBubbleEvent($sender,$param)
{
- if($param instanceof TCommandEventParameter)
+ if(!$this->_ignoreBubbleEvents && ($param instanceof TCommandEventParameter))
{
switch($param->getCommandName())
{