From 84a6c667801d46c4cb6f831c9e40043b308f96d8 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 5 Feb 2006 23:38:21 +0000 Subject: Added two examples showing creating new controls by composition. --- .../Samples/LabeledTextBox1/LabeledTextBox.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/LabeledTextBox.php (limited to 'demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/LabeledTextBox.php') diff --git a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/LabeledTextBox.php b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/LabeledTextBox.php new file mode 100644 index 00000000..999639d7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/LabeledTextBox.php @@ -0,0 +1,18 @@ +ensureChildControls(); + return $this->getRegisteredObject('Label'); + } + + public function getTextBox() + { + $this->ensureChildControls(); + return $this->getRegisteredObject('TextBox'); + } +} + +?> \ No newline at end of file -- cgit v1.2.3