public function setStyleForId($idOrStyles, $style = null)
    {
        if (is_array($idOrStyles)) {
            $this->styles = array_merge($this->styles, $idOrStyles);
        } else {
            $this->styles[$idOrStyles] = $style;
        }
        return $this;
    }
public function setStyleForId($idOrStyles, $style = null)
    {
        if (is_array($idOrStyles)) {
            $this->styles = array_merge($this->styles, $idOrStyles);
        } else {
            $this->styles[$idOrStyles] = $style;
        }
        return $this;
    }
public function setStyleForId ( $ idOrStyles , $ style = null ) { if ( is_array ( $ idOrStyles ) ) { $ this -> styles = array_merge ( $ this -> styles , $ idOrStyles ) ; } else { $ this -> styles [ $ idOrStyles ] = $ style ; } return $ this ; }
Sets a style for element rendering

"Style" is some information that is opaque to Array Renderer but may be
of use to e.g. template engine that receives the resultant array.

@param    string|array    Element id or array ('element id' => 'style')
@param    sting           Element style if $idOrStyles is not an array
@return   HTML_QuickForm2_Renderer_Array
Sets a style for element rendering