Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class LabeledTextBox extends TCompositeControl
4
{
5
	private $_label;
6
	private $_textbox;
7
 
8
	public function createChildControls()
9
	{
10
		$this->_label=new TLabel;
11
		$this->_label->setID('Label');
12
		$this->getControls()->add($this->_label);
13
		$this->getControls()->add('&nbsp;');
14
		$this->_textbox=new TTextBox;
15
		$this->_textbox->setID('TextBox');
16
		$this->_label->setForControl('TextBox');
17
		$this->getControls()->add($this->_textbox);
18
	}
19
 
20
	public function getLabel()
21
	{
22
		$this->ensureChildControls();
23
		return $this->_label;
24
	}
25
 
26
	public function getTextBox()
27
	{
28
		$this->ensureChildControls();
29
		return $this->_textbox;
30
	}
31
}
32
 
33
?>