public static function addCssClass(&$options, $class)
    {
        if (isset($options['class'])) {
            $classes = ' ' . $options['class'] . ' ';
            if (($pos = strpos($classes, ' ' . $class . ' ')) === false) {
                $options['class'] .= ' ' . $class;
            }
        } else {
            $options['class'] = $class;
        }
    }
public static function addCssClass(&$options, $class)
    {
        if (isset($options['class'])) {
            $classes = ' ' . $options['class'] . ' ';
            if (($pos = strpos($classes, ' ' . $class . ' ')) === false) {
                $options['class'] .= ' ' . $class;
            }
        } else {
            $options['class'] = $class;
        }
    }
public static function addCssClass ( & $ options , $ class ) { if ( isset ( $ options [ 'class' ] ) ) { $ classes = ' ' . $ options [ 'class' ] . ' ' ; if ( ( $ pos = strpos ( $ classes , ' ' . $ class . ' ' ) ) === false ) { $ options [ 'class' ] .= ' ' . $ class ; } } else { $ options [ 'class' ] = $ class ; } }
Adds a CSS class to the specified options.
If the CSS class is already in the options, it will not be added again.
@param array $options the options to be modified.
@param string $class the CSS class to be added
Adds a CSS class to the specified options . If the CSS class is already in the options it will not be added again .