public function createChildControls()
{
if (null === ($_template = $this->getTemplate())) {
return $this->doCreateChildControlsFor(get_class($this));
}
foreach ($_template->getDirective() as $_name => $_value) {
if (!is_string($_value)) {
throw new TConfigurationException('templatecontrol_directive_invalid', get_class($this), $name);
}
$this->setSubProperty($_name, $_value);
}
$_template->instantiateIn($this);
}