public function addClass($class) {

		// classes array
		if (is_array($class)) {
			
			// adds all of them
			foreach ($class as $c) {
				if (!in_array($c, $this->class)) {
					$this->class[] = $c;
				}
			}
			
		// single class
		} else if (!in_array($class, $this->class)) {
			
			$this->class[] = $class;
			
		}

		return $this;

	}
public function addClass($class) {

		// classes array
		if (is_array($class)) {
			
			// adds all of them
			foreach ($class as $c) {
				if (!in_array($c, $this->class)) {
					$this->class[] = $c;
				}
			}
			
		// single class
		} else if (!in_array($class, $this->class)) {
			
			$this->class[] = $class;
			
		}

		return $this;

	}
public function addClass ( $ class ) { // classes array if ( is_array ( $ class ) ) { // adds all of them foreach ( $ class as $ c ) { if ( ! in_array ( $ c , $ this -> class ) ) { $ this -> class [ ] = $ c ; } } // single class } else if ( ! in_array ( $ class , $ this -> class ) ) { $ this -> class [ ] = $ class ; } return $ this ; }
Adds CSS single class, classes string or classes array to this control, avoiding
duplicates. This method is chainable.

@param	string|array	Single class name, list space separated or array of class names.

@return	FormControl subclass
Adds CSS single class classes string or classes array to this control avoiding duplicates . This method is chainable .