summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/controls
diff options
context:
space:
mode:
authorxue <>2006-04-28 11:10:06 +0000
committerxue <>2006-04-28 11:10:06 +0000
commit2cc93773feb5e76d2dd002b1dcd463a01d606794 (patch)
treec3615e1183fa6db678dbdf08b07c25543a2cde09 /tests/FunctionalTests/features/protected/controls
parent1f63d5c05ba117e0158c02d5bc79fa1f38f8ce85 (diff)
Merge from 3.0 branch till 985.
Diffstat (limited to 'tests/FunctionalTests/features/protected/controls')
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl2
-rw-r--r--tests/FunctionalTests/features/protected/controls/LabeledTextbox.php25
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl b/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl
new file mode 100644
index 00000000..276d03b2
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextBox.tpl
@@ -0,0 +1,2 @@
+<com:TLabel ID="label" ForControl="textbox" Text="label:" />
+<com:TTextBox ID="textbox" /> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
new file mode 100644
index 00000000..9a50d095
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/controls/LabeledTextbox.php
@@ -0,0 +1,25 @@
+<?php
+/*
+ * Created on 28/04/2006
+ */
+
+class LabeledTextBox extends TTemplateControl
+{
+ public function __construct()
+ {
+ parent::__construct();
+ $this->ensureChildControls();
+ }
+
+ public function getTextBox()
+ {
+ return $this->getRegisteredObject('textbox');
+ }
+
+ public function getLabel()
+ {
+ return $this->getRegisteredObject('label');
+ }
+}
+
+?>