diff options
Diffstat (limited to 'lib/prado/framework/Web/UI/TCompositeControl.php')
-rw-r--r-- | lib/prado/framework/Web/UI/TCompositeControl.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/prado/framework/Web/UI/TCompositeControl.php b/lib/prado/framework/Web/UI/TCompositeControl.php new file mode 100644 index 0000000..e830351 --- /dev/null +++ b/lib/prado/framework/Web/UI/TCompositeControl.php @@ -0,0 +1,36 @@ +<?php +/** + * TCompositeControl class file. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @link https://github.com/pradosoft/prado + * @copyright Copyright © 2005-2015 The PRADO Group + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT + * @package System.Web.UI + */ + +/** + * TCompositeControl class. + * TCompositeControl is the base class for controls that are composed + * by other controls. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @package System.Web.UI + * @since 3.0 + */ +class TCompositeControl extends TControl implements INamingContainer +{ + /** + * Performs the OnInit step for the control and all its child controls. + * This method overrides the parent implementation + * by ensuring child controls are created first. + * Only framework developers should use this method. + * @param TControl the naming container control + */ + protected function initRecursive($namingContainer=null) + { + $this->ensureChildControls(); + parent::initRecursive($namingContainer); + } +} + |