protected function replaceStyle($what, $value)
    {
        if (is_array($value) && count($value)) {
            $type = 'inner';
            switch ($what) {
                case 0:
                    $type = 'outer';
                    break;
                case 2:
                    $type = 'button';
                    break;
            }
            foreach ($value as $name => $set) {
                if (isset($this->{$type . 'Style'}[$name])) {
                    if ($set === false || $set === null) {
                        unset($this->{$type . 'Style'}[$name]);
                    } else {
                        $this->{$type . 'Style'}[$name] = str_replace(';', '', trim($set));
                    }
                }
            }
        }
    }
protected function replaceStyle($what, $value)
    {
        if (is_array($value) && count($value)) {
            $type = 'inner';
            switch ($what) {
                case 0:
                    $type = 'outer';
                    break;
                case 2:
                    $type = 'button';
                    break;
            }
            foreach ($value as $name => $set) {
                if (isset($this->{$type . 'Style'}[$name])) {
                    if ($set === false || $set === null) {
                        unset($this->{$type . 'Style'}[$name]);
                    } else {
                        $this->{$type . 'Style'}[$name] = str_replace(';', '', trim($set));
                    }
                }
            }
        }
    }
protected function replaceStyle ( $ what , $ value ) { if ( is_array ( $ value ) && count ( $ value ) ) { $ type = 'inner' ; switch ( $ what ) { case 0 : $ type = 'outer' ; break ; case 2 : $ type = 'button' ; break ; } foreach ( $ value as $ name => $ set ) { if ( isset ( $ this -> { $ type . 'Style' } [ $ name ] ) ) { if ( $ set === false || $ set === null ) { unset ( $ this -> { $ type . 'Style' } [ $ name ] ) ; } else { $ this -> { $ type . 'Style' } [ $ name ] = str_replace ( ';' , '' , trim ( $ set ) ) ; } } } } }
Replaces the CSS styles for selected part.
@param integer $what number of part
@param array $value list of styles
Replaces the CSS styles for selected part .