GridView.php
private function _getOptions($options) {
        $optionsHtml='';
        if (!empty($options)) {
            if(is_array($options)) {
                foreach($options as $key => $value) {
                    $optionsHtml.=' '.$key.'="'.$value.'"';
                }
            } else {
                $optionsHtml=' class="'.$options.'"';
            }
        }
        return $optionsHtml;
    }
private function _getOptions($options) {
        $optionsHtml='';
        if (!empty($options)) {
            if(is_array($options)) {
                foreach($options as $key => $value) {
                    $optionsHtml.=' '.$key.'="'.$value.'"';
                }
            } else {
                $optionsHtml=' class="'.$options.'"';
            }
        }
        return $optionsHtml;
    }
get item option html code
@param $options array html options
@return string the html code of options