Prado\Web\UI\TPage::endFormRender PHP Метод

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

public endFormRender ( $writer )
    public function endFormRender($writer)
    {
        if ($this->_focus) {
            if ($this->_focus instanceof TControl && $this->_focus->getVisible(true)) {
                $focus = $this->_focus->getClientID();
            } else {
                $focus = $this->_focus;
            }
            $this->getClientScript()->registerFocusControl($focus);
        } else {
            if ($this->_postData && ($lastFocus = $this->_postData->itemAt(self::FIELD_LASTFOCUS)) !== null) {
                $this->getClientScript()->registerFocusControl($lastFocus);
            }
        }
        $this->_inFormRender = false;
    }