Prado\Web\UI\WebControls\TBaseValidator::addAttributesToRender PHP 메소드

addAttributesToRender() 보호된 메소드

Adds attributes to renderer. Calls parent implementation and renders the client control scripts.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        $display = $this->getDisplay();
        $visible = $this->getEnabled(true) && !$this->getIsValid();
        if ($display === TValidatorDisplayStyle::None || !$visible && $display === TValidatorDisplayStyle::Dynamic) {
            $writer->addStyleAttribute('display', 'none');
        } else {
            if (!$visible) {
                $writer->addStyleAttribute('visibility', 'hidden');
            }
        }
        $writer->addAttribute('id', $this->getClientID());
        parent::addAttributesToRender($writer);
        $this->renderClientControlScript($writer);
    }