public function doTemplateForClass($parentClass)
{
if (null !== ($_template = $this->getService()->getTemplateManager()->getTemplateByClassName($parentClass))) {
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);
}
}