Prado\Web\UI\WebControls\TDataGridPagerStyle::mergeWith PHP Method

mergeWith() public method

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