summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
diff options
context:
space:
mode:
authorxue <>2006-04-28 11:02:12 +0000
committerxue <>2006-04-28 11:02:12 +0000
commitb97d6a698d80d946e3669595e8d87f0c378b3520 (patch)
tree2d86bf8e566e8f95b0ac90a9dd2dc227c92f6051 /tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
parent19989e32667e653d9dd65066ba26c91562a3cdc8 (diff)
A few minor fixes.
Diffstat (limited to 'tests/FunctionalTests/features/protected/controls/LabeledTextbox.php')
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextbox.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
index e190abd4..9a50d095 100644
--- a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
@@ -3,8 +3,14 @@
* Created on 28/04/2006
*/
-class LabeledTextBox extends TCompositeControl
+class LabeledTextBox extends TTemplateControl
{
+ public function __construct()
+ {
+ parent::__construct();
+ $this->ensureChildControls();
+ }
+
public function getTextBox()
{
return $this->getRegisteredObject('textbox');
@@ -12,7 +18,7 @@ class LabeledTextBox extends TCompositeControl
public function getLabel()
{
- return $this->label;
+ return $this->getRegisteredObject('label');
}
}