code: public function addClass($name){
  		$classParts=explode(' ',$this->tags['class']);
  		foreach($classParts as $part){
  			if($name==$part)
  				return;
  		}
  
  		$this->tags['class'].=' '.$name;
  		$this->tags['class']=trim($this->tags['class']);
  	}
docs: Add part html tag class
  
  @param string $name - class name: