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

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

This overrides the parent implementation with additional button specific attributes.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        if ($this->getID() !== '') {
            $writer->addAttribute('name', $this->getUniqueID());
        }
        if (($src = $this->getFrameUrl()) !== '') {
            $writer->addAttribute('src', $src);
        }
        if (($align = strtolower($this->getAlign())) !== 'notset') {
            $writer->addAttribute('align', $align);
        }
        $scrollBars = $this->getScrollBars();
        if ($scrollBars === TInlineFrameScrollBars::None) {
            $writer->addAttribute('scrolling', 'no');
        } else {
            if ($scrollBars === TInlineFrameScrollBars::Both) {
                $writer->addAttribute('scrolling', 'yes');
            }
        }
        if (!$this->getShowBorder()) {
            $writer->addAttribute('frameborder', '0');
        }
        if (($longdesc = $this->getDescriptionUrl()) !== '') {
            $writer->addAttribute('longdesc', $longdesc);
        }
        if (($width = $this->getWidth()) !== -1) {
            $writer->addAttribute('width', $width);
        }
        if (($height = $this->getHeight()) !== -1) {
            $writer->addAttribute('height', $height);
        }
        if (($marginheight = $this->getMarginHeight()) !== -1) {
            $writer->addAttribute('marginheight', $marginheight);
        }
        if (($marginwidth = $this->getMarginWidth()) !== -1) {
            $writer->addAttribute('marginwidth', $marginwidth);
        }
        parent::addAttributesToRender($writer);
    }