Prado\Web\UI\WebControls\TTableStyle::copyFrom PHP Méthode

copyFrom() public méthode

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 TTableStyle) {
            if ($style->_backImageUrl !== null) {
                $this->_backImageUrl = $style->_backImageUrl;
            }
            if ($style->_horizontalAlign !== null) {
                $this->_horizontalAlign = $style->_horizontalAlign;
            }
            if ($style->_cellPadding !== null) {
                $this->_cellPadding = $style->_cellPadding;
            }
            if ($style->_cellSpacing !== null) {
                $this->_cellSpacing = $style->_cellSpacing;
            }
            if ($style->_gridLines !== null) {
                $this->_gridLines = $style->_gridLines;
            }
            if ($style->_borderCollapse !== null) {
                $this->_borderCollapse = $style->_borderCollapse;
            }
        }
    }