[ Index ] |
|
Code source de PRADO 3.0.6 |
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(' '); 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 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |