public function removeClass($className) {
        $oldClassName    = $this->getAttributeValue('class');
        $oldClassNameArr = $oldClassName ? explode(' ', $oldClassName) : array();
        unset($oldClassNameArr[array_search($className, $oldClassNameArr)]);
        $this->setAttribute('class', implode(' ', $oldClassNameArr));
    }
public function removeClass($className) {
        $oldClassName    = $this->getAttributeValue('class');
        $oldClassNameArr = $oldClassName ? explode(' ', $oldClassName) : array();
        unset($oldClassNameArr[array_search($className, $oldClassNameArr)]);
        $this->setAttribute('class', implode(' ', $oldClassNameArr));
    }
public function removeClass ( $ className ) { $ oldClassName = $ this -> getAttributeValue ( 'class' ) ; $ oldClassNameArr = $ oldClassName ? explode ( ' ' , $ oldClassName ) : array ( ) ; unset ( $ oldClassNameArr [ array_search ( $ className , $ oldClassNameArr ) ] ) ; $ this -> setAttribute ( 'class' , implode ( ' ' , $ oldClassNameArr ) ) ; }
Add a CSS class from the item body

@author Dieter Raber <dieter@taotesting.com>
@param $className
Add a CSS class from the item body