summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2007-09-29 21:10:55 +0000
committerxue <>2007-09-29 21:10:55 +0000
commit109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (patch)
tree49b8c7c66f3ec4bf98c3d3ccd425c82eb4e3aa42 /framework/Web
parent81d60a70d4612f75f05e2c8a8ddfcafcee1dc3c0 (diff)
Fixed object registration.
Diffstat (limited to 'framework/Web')
-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.