diff options
author | xue <> | 2006-01-25 14:11:32 +0000 |
---|---|---|
committer | xue <> | 2006-01-25 14:11:32 +0000 |
commit | 3afd35b166267c00f368239b00662866c79bb090 (patch) | |
tree | 9406d19428734aa05250f58b064ddbdad20c1c85 /tests/FunctionalTests | |
parent | bf66ad7bb36e881f53437491333940d74d77139e (diff) |
Changed back the usage of ensureChildControls in TTemplateControl. Added TControl::getRegisteredObject. Modified LabeledTextBox accordingly.
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r-- | tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php index 3a3eba2d..15702d29 100644 --- a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php +++ b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php @@ -15,7 +15,8 @@ class LabeledTextBox extends TTemplateControl */
public function getTextBox()
{
- return $this->textbox;
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('textbox');
}
/**
@@ -23,7 +24,8 @@ class LabeledTextBox extends TTemplateControl */
public function getLabel()
{
- return $this->label;
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('label');
}
}
|