MB_Artist Class Reference

Artist class. More...

List of all members.

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


Detailed Description

Artist class.

Class for holding artist information.


Member Function Documentation

MB_Artist::new (  ) 

Constructor.

Construct new MB_Artist object;

  $artist = 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


Member Data Documentation

MB_Artist::id

Unique ID to identify a single artist.

MB_Artist::name

Artist name.

MB_Artist::gid

GID, this field is a 36 digit (32 hexidecimal digits + 4 x '-') and is unique to every table.

MB_Artist::modpending

1 if there is an edit pending on this artist, other wise 0

MB_Artist::sortname

Artist sortname.

MB_Artist::page

Page?

MB_Artist::resolution

Artist resolution. For multiple artists with the same name, this string deliminates between the artists.

MB_Artist::begindate

Begin date. When the person was born, or a band came together.

MB_Artist::enddate

End date. Date of death for a person, or date a band disolved.

MB_Artist::type

Type of artist.
0 - Unknown
1 - Person
2 - Group


The documentation for this class was generated from the following file:
Generated on Tue Jan 30 15:04:38 2007 for MB_MySQL by  doxygen 1.5.1-p1