summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TMultiView.php
diff options
context:
space:
mode:
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())
{