public function removeClass($class)
    {
        $cl = ' '.$this->template->get('class').' ';
        $cl = str_replace(' '.trim($class).' ', ' ', $cl);
        $this->template->set('class', trim($cl));

        return $this;
    }
public function removeClass($class)
    {
        $cl = ' '.$this->template->get('class').' ';
        $cl = str_replace(' '.trim($class).' ', ' ', $cl);
        $this->template->set('class', trim($cl));

        return $this;
    }
public function removeClass ( $ class ) { $ cl = ' ' . $ this -> template -> get ( 'class' ) . ' ' ; $ cl = str_replace ( ' ' . trim ( $ class ) . ' ' , ' ' , $ cl ) ; $ this -> template -> set ( 'class' , trim ( $ cl ) ) ; return $ this ; }
Remove CSS class from element, if it was added with setClass
or addClass.

@param string $class Single CSS class name to remove

@return $this
Remove CSS class from element if it was added with setClass or addClass .