public function setAttribute($attr, $value) {

		$attr = strtolower($attr);

		switch($attr) {
			case 'action':
				$this->setAction($value);
				return $this;

			case 'enctype':
				$this->setEncType($value);
				return $this;

			case 'method':
				$this->setMethod($value);
				return $this;

			default:
				$this->attributes[$attr] = $value;
		}

		return $this;

	}
public function setAttribute($attr, $value) {

		$attr = strtolower($attr);

		switch($attr) {
			case 'action':
				$this->setAction($value);
				return $this;

			case 'enctype':
				$this->setEncType($value);
				return $this;

			case 'method':
				$this->setMethod($value);
				return $this;

			default:
				$this->attributes[$attr] = $value;
		}

		return $this;

	}
public function setAttribute ( $ attr , $ value ) { $ attr = strtolower ( $ attr ) ; switch ( $ attr ) { case 'action' : $ this -> setAction ( $ value ) ; return $ this ; case 'enctype' : $ this -> setEncType ( $ value ) ; return $ this ; case 'method' : $ this -> setMethod ( $ value ) ; return $ this ; default : $ this -> attributes [ $ attr ] = $ value ; } return $ this ; }
set miscellaneous attribute of form

@param string $attr
@param string $value
@return HtmlForm
@throws HtmlFormException
set miscellaneous attribute of form