src/Attributes.php
public function getAttribStr($name)
	{
		$value = $this->attributes[$name];
		if ($value === null || $value === false || $name === null) {
			return '';
		}
		if ($value === true) {
			if ($this->element) {
				$class = get_class($this->element);
				if ($class::HTML_MODE) {
					return ' ' . $name;
				}
			}
			$value = $name;
		}
		return ' ' . $name . '="' . $value . '"';
	}
public function getAttribStr($name)
	{
		$value = $this->attributes[$name];
		if ($value === null || $value === false || $name === null) {
			return '';
		}
		if ($value === true) {
			if ($this->element) {
				$class = get_class($this->element);
				if ($class::HTML_MODE) {
					return ' ' . $name;
				}
			}
			$value = $name;
		}
		return ' ' . $name . '="' . $value . '"';
	}
public function getAttribStr ( $ name ) { $ value = $ this -> attributes [ $ name ] ; if ( $ value === null || $ value === false || $ name === null ) { return '' ; } if ( $ value === true ) { if ( $ this -> element ) { $ class = get_class ( $ this -> element ) ; if ( $ class :: HTML_MODE ) { return ' ' . $ name ; } } $ value = $ name ; } return ' ' . $ name . '="' . $ value . '"' ; }
Returns the string representation of a single attribute.

@param  string  $name  Name of the attribute.
@return string
Returns the string representation of a single attribute .