gan_node_html.php
function getAttribute($attr, $compare = 'total', $case_sensitive = false) {
		$f = $this->findAttribute($attr, $compare, $case_sensitive);
		if (is_array($f) && $f){
			if (count($f) === 1) {
				return $this->attributes[$f[0][2]];
			} else {
				$res = array();
				foreach($f as $a) {
					$res[] = $this->attributes[$a[2]];
				}
				return $res;
			}
		} else {
			return null;
		}
	}
function getAttribute($attr, $compare = 'total', $case_sensitive = false) {
		$f = $this->findAttribute($attr, $compare, $case_sensitive);
		if (is_array($f) && $f){
			if (count($f) === 1) {
				return $this->attributes[$f[0][2]];
			} else {
				$res = array();
				foreach($f as $a) {
					$res[] = $this->attributes[$a[2]];
				}
				return $res;
			}
		} else {
			return null;
		}
	}
function getAttribute ( $ attr , $ compare = 'total' , $ case_sensitive = false ) { $ f = $ this -> findAttribute ( $ attr , $ compare , $ case_sensitive ) ; if ( is_array ( $ f ) && $ f ) { if ( count ( $ f ) === 1 ) { return $ this -> attributes [ $ f [ 0 ] [ 2 ] ] ; } else { $ res = array ( ) ; foreach ( $ f as $ a ) { $ res [ ] = $ this -> attributes [ $ a [ 2 ] ] ; } return $ res ; } } else { return null ; } }
Gets value(s) of attribute(s)
@param string|int $attr Negative int to count from end
@param string $compare Find node using "namespace", "name" or "total"
@param bool $case_sensitive Compare with case sensitivity
@return string|array
Gets value ( s ) of attribute ( s )