Prado\Web\UI\TForm::addAttributesToRender PHP Метод

addAttributesToRender() защищенный Метод

Adds form specific attributes to renderer.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        $writer->addAttribute('id', $this->getClientID());
        $writer->addAttribute('method', $this->getMethod());
        $uri = $this->getRequest()->getRequestURI();
        $writer->addAttribute('action', str_replace('&', '&', str_replace('&', '&', $uri)));
        if (($enctype = $this->getEnctype()) !== '') {
            $writer->addAttribute('enctype', $enctype);
        }
        $attributes = $this->getAttributes();
        $attributes->remove('action');
        $writer->addAttributes($attributes);
        if (($butt = $this->getDefaultButton()) !== '') {
            if (($button = $this->findControl($butt)) !== null) {
                $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
            } else {
                throw new TInvalidDataValueException('form_defaultbutton_invalid', $butt);
            }
        }
    }