Public Member Functions | |
| new () | |
| Constructor. | |
| MB_PUID | getPUIDs (@args) |
| Get PUID(s) attached to this track. | |
| MB_TRM | getTRMs (@args) |
| Get TRM(s) attached to this track. | |
Public Attributes | |
| id | |
| Unique ID to identify a single track. | |
| artist | |
The artist that the track belongs to. This matches artist.id. | |
| name | |
| Track name (title). | |
| gid | |
| GID, this field is a 36 digit (32 hexidecimal digits + 4 x '-') and is unique to every table. | |
| length | |
| Length of the track (in milliseconds). Divide by 1000 to get time in seconds. | |
| year | |
| Year. | |
| modpending | |
1 if there is an edit pending on this track, other wise 0 | |
Class for holding release information.
| MB_Track::new | ( | ) |
| MB_PUID MB_Track::getPUIDs | ( | @ | args | ) |
Get PUID(s) attached to this track.
use MB_MySQL;
$mb = MB_MySQL->new;
$mb->connect('root', 'pass');
$track = $mb->getTrack(id => 2943025); @puids = $track->getPUIDs();
foreach $puid (@puids) {
print $puid->puid . " (" . $puid->lookupcount . ")\n";
}
Available filters:
limit - Eg. limit => 10
| MB_TRM MB_Track::getTRMs | ( | @ | args | ) |
Get TRM(s) attached to this track.
use MB_MySQL;
$mb = MB_MySQL->new;
$mb->connect('root', 'pass');
$track = $mb->getTrack(id => 2943025); @trms = $track->getTRMs();
foreach $trm (@trms) {
print $trm->trm . " (" . $trm->lookupcount . ")\n";
}
Available filters:
limit - Eg. limit => 10
By default, the TRMs are returned sorted by lookupcount where the highest lookupcount is at the top.
Unique ID to identify a single track.
The artist that the track belongs to. This matches artist.id.
Track name (title).
GID, this field is a 36 digit (32 hexidecimal digits + 4 x '-') and is unique to every table.
Length of the track (in milliseconds). Divide by 1000 to get time in seconds.
Year.
1 if there is an edit pending on this track, other wise 0
1.5.1-p1