Prado\Web\UI\TTemplateControlInheritable::doTemplateForClass PHP Метод

doTemplateForClass() публичный Метод

This method creates the template object for the given class
public doTemplateForClass ( $parentClass ) : void
Результат void
    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);
        }
    }