summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TConditional.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TConditional.php b/framework/Web/UI/WebControls/TConditional.php
index 41535ca4..fa17eede 100644
--- a/framework/Web/UI/WebControls/TConditional.php
+++ b/framework/Web/UI/WebControls/TConditional.php
@@ -64,6 +64,18 @@ class TConditional extends TControl
}
/**
+ * Registers an object defined in the template.
+ * This method is overriden so that the objects are actually
+ * registered to the template containing the TConditional control.
+ * @param string name of the object
+ * @param mixed the object to be registered
+ */
+ public function registerObject($name,$object)
+ {
+ $this->getTemplateControl()->registerObject($name,$object);
+ }
+
+ /**
* Creates child controls.
* This method overrides the parent implementation. It evaluates {@link getCondition Condition}
* and instantiate the corresponding template.