Prado\Web\UI\WebControls\TWizardNavigationButtonStyle::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 TWizardNavigationButtonStyle) {
            if ($this->_imageUrl === null && $style->_imageUrl !== null) {
                $this->_imageUrl = $style->_imageUrl;
            }
            if ($this->_buttonText === null && $style->_buttonText !== null) {
                $this->_buttonText = $style->_buttonText;
            }
            if ($this->_buttonType === null && $style->_buttonType !== null) {
                $this->_buttonType = $style->_buttonType;
            }
        }
    }