Prado\Web\UI\WebControls\TDataGridPagerStyle::copyFrom PHP Метод

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

If a style field is set in the new style, the corresponding field in this style will be overwritten.
public copyFrom ( $style )
    public function copyFrom($style)
    {
        parent::copyFrom($style);
        if ($style instanceof TDataGridPagerStyle) {
            if ($style->_visible !== null) {
                $this->_visible = $style->_visible;
            }
            if ($style->_position !== null) {
                $this->_position = $style->_position;
            }
            if ($style->_buttonCount !== null) {
                $this->_buttonCount = $style->_buttonCount;
            }
            if ($style->_prevText !== null) {
                $this->_prevText = $style->_prevText;
            }
            if ($style->_nextText !== null) {
                $this->_nextText = $style->_nextText;
            }
            if ($style->_mode !== null) {
                $this->_mode = $style->_mode;
            }
            if ($style->_buttonType !== null) {
                $this->_buttonType = $style->_buttonType;
            }
        }
    }