protected function addClassOption($name, $value)
    {
        $value = trim($value);
        if (substr($value, 0, 1) == '.' || substr($value, 0, 1) == '#') {
            $value = substr($value, 1);
        }
        if ($value != '') {
            $this->addOption('class', $name, $value);
        }
    }
protected function addClassOption($name, $value)
    {
        $value = trim($value);
        if (substr($value, 0, 1) == '.' || substr($value, 0, 1) == '#') {
            $value = substr($value, 1);
        }
        if ($value != '') {
            $this->addOption('class', $name, $value);
        }
    }
protected function addClassOption ( $ name , $ value ) { $ value = trim ( $ value ) ; if ( substr ( $ value , 0 , 1 ) == '.' || substr ( $ value , 0 , 1 ) == '#' ) { $ value = substr ( $ value , 1 ) ; } if ( $ value != '' ) { $ this -> addOption ( 'class' , $ name , $ value ) ; } }
Adds class option, removes dot and hash.
@param string $name option name
@param string $value option value
Adds class option removes dot and hash .