protected function prepareViewParams()
    {
        $outerStyle  = [];
        $innerStyle  = [];
        $buttonStyle = [];

        foreach ($this->outerStyle as $name => $value) {
            $outerStyle[] = $name . ':' . $value;
        }
        foreach ($this->innerStyle as $name => $value) {
            $innerStyle[] = $name . ':' . $value;
        }
        foreach ($this->buttonStyle as $name => $value) {
            $buttonStyle[] = $name . ':' . $value;
        }

        return [
            'content'           => $this->contentOptions,
            'outerHtmlOptions'  => array_merge(
                                        $this->outerHtml, 
                                        [
                                            'style' => implode(';', $outerStyle),
                                            'class' => $this->classOptions['classOuter']
                                        ]
                                    ),
            'innerHtmlOptions'  => array_merge(
                                        $this->innerHtml, 
                                        [
                                            'style' => implode(';', $innerStyle),
                                            'class' => $this->classOptions['classInner']
                                        ]
                                    ),
            'buttonHtmlOptions' => array_merge(
                                        $this->buttonHtml, 
                                        [
                                            'style' => implode(';', $buttonStyle),
                                            'class' => $this->classOptions['classButton']
                                        ]
                                    ),
            'params'            => $this->params
        ];
    }
protected function prepareViewParams()
    {
        $outerStyle  = [];
        $innerStyle  = [];
        $buttonStyle = [];

        foreach ($this->outerStyle as $name => $value) {
            $outerStyle[] = $name . ':' . $value;
        }
        foreach ($this->innerStyle as $name => $value) {
            $innerStyle[] = $name . ':' . $value;
        }
        foreach ($this->buttonStyle as $name => $value) {
            $buttonStyle[] = $name . ':' . $value;
        }

        return [
            'content'           => $this->contentOptions,
            'outerHtmlOptions'  => array_merge(
                                        $this->outerHtml, 
                                        [
                                            'style' => implode(';', $outerStyle),
                                            'class' => $this->classOptions['classOuter']
                                        ]
                                    ),
            'innerHtmlOptions'  => array_merge(
                                        $this->innerHtml, 
                                        [
                                            'style' => implode(';', $innerStyle),
                                            'class' => $this->classOptions['classInner']
                                        ]
                                    ),
            'buttonHtmlOptions' => array_merge(
                                        $this->buttonHtml, 
                                        [
                                            'style' => implode(';', $buttonStyle),
                                            'class' => $this->classOptions['classButton']
                                        ]
                                    ),
            'params'            => $this->params
        ];
    }
protected function prepareViewParams ( ) { $ outerStyle = [ ] ; $ innerStyle = [ ] ; $ buttonStyle = [ ] ; foreach ( $ this -> outerStyle as $ name => $ value ) { $ outerStyle [ ] = $ name . ':' . $ value ; } foreach ( $ this -> innerStyle as $ name => $ value ) { $ innerStyle [ ] = $ name . ':' . $ value ; } foreach ( $ this -> buttonStyle as $ name => $ value ) { $ buttonStyle [ ] = $ name . ':' . $ value ; } return [ 'content' => $ this -> contentOptions , 'outerHtmlOptions' => array_merge ( $ this -> outerHtml , [ 'style' => implode ( ';' , $ outerStyle ) , 'class' => $ this -> classOptions [ 'classOuter' ] ] ) , 'innerHtmlOptions' => array_merge ( $ this -> innerHtml , [ 'style' => implode ( ';' , $ innerStyle ) , 'class' => $ this -> classOptions [ 'classInner' ] ] ) , 'buttonHtmlOptions' => array_merge ( $ this -> buttonHtml , [ 'style' => implode ( ';' , $ buttonStyle ) , 'class' => $ this -> classOptions [ 'classButton' ] ] ) , 'params' => $ this -> params ] ; }
Prepares the list of parameters to send to the view.
@return array
Prepares the list of parameters to send to the view .