From 109ff4ee3bec41d95a122c6a69ad204c5dcfe099 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 29 Sep 2007 21:10:55 +0000 Subject: Fixed object registration. --- framework/Web/UI/WebControls/TConditional.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'framework/Web/UI/WebControls') 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 @@ -63,6 +63,18 @@ class TConditional extends TControl parent::addParsedObject($object); } + /** + * 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} -- cgit v1.2.3