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

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

This method is overridden to load and instantiate control template. This method should only be used by framework and control developers. Uses the controls template if available or the base class template otherwise.
public createChildControls ( ) : void
Результат void
    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);
    }