Public Member Functions | |
| new () | |
| Constructor. | |
| MB_Release | getReleases (@filter) |
| Get releases attached to this artist. | |
Public Attributes | |
| id | |
| Unique ID to identify a single artist. | |
| name | |
| Artist name. | |
| gid | |
| GID, this field is a 36 digit (32 hexidecimal digits + 4 x '-') and is unique to every table. | |
| modpending | |
1 if there is an edit pending on this artist, other wise 0 | |
| sortname | |
| Artist sortname. | |
| page | |
| Page? | |
| resolution | |
| begindate | |
| Begin date. When the person was born, or a band came together. | |
| enddate | |
| End date. Date of death for a person, or date a band disolved. | |
| type | |
Class for holding artist information.
| MB_Artist::new | ( | ) |
| MB_Release MB_Artist::getReleases | ( | @ | filter | ) |
Get releases attached to this artist.
$mb = MB_MySQL->new;
$mb->connect('root', 'rca016');
$artist = $mb->getArtist(name => "Rammstein");
@releases = $artist->getReleases(type => $REL_TYPE{'SINGLE'});
foreach $release (@releases) {
print $release->gid . " " . $release->name . "\n";
}
Available filters:
type - Paired with $REL_TYPE. Eg. type => $REL_TYPE{'SINGLE'}. See ::REL_TYPE
status - Paired with $REL_STATUS. Eg. status => $REL_STATUS{'OFFICIAL'}. See ::REL_STATUS
limit - Eg. limit => 10
Unique ID to identify a single artist.
Artist name.
GID, this field is a 36 digit (32 hexidecimal digits + 4 x '-') and is unique to every table.
1 if there is an edit pending on this artist, other wise 0
Artist sortname.
Page?
Artist resolution. For multiple artists with the same name, this string deliminates between the artists.
Begin date. When the person was born, or a band came together.
End date. Date of death for a person, or date a band disolved.
Type of artist.
0 - Unknown
1 - Person
2 - Group
1.5.1-p1