public function getAttribute($attr, $default = null) {
		
		return ($attr && array_key_exists($attr, $this->attributes)) ? $this->attributes[$attr] : $default;
		
	}
public function getAttribute($attr, $default = null) {
		
		return ($attr && array_key_exists($attr, $this->attributes)) ? $this->attributes[$attr] : $default;
		
	}
public function getAttribute ( $ attr , $ default = null ) { return ( $ attr && array_key_exists ( $ attr , $ this -> attributes ) ) ? $ this -> attributes [ $ attr ] : $ default ; }
get an attribute, if the attribute was not set previously a
default value can be supplied

@param string $attr
@param string $default
@return string
get an attribute if the attribute was not set previously a default value can be supplied