Léon Brocard

NAME

TV::Anytime::Group - Represent a program group

SYNOPSIS

  print "    ID: " . $group->id . "\n";
  print " Title: " . $group->title . "\n";
  print "Series: " . $group->is_series . "\n";
  print "        $_\n" foreach $group->members;
  print "    isa $_\n" foreach $group->parents;

DESCRIPTION

The TV::Anytime::Group represents a program group, such as categorisation of programs or a series.

METHODS

head2 id

This returns the ID of the group:

  print "    ID: " . $group->id . "\n";

members

This returns a list of the member IDs of the group:

  print "        $_\n" foreach $group->members;

parents

This returns a list of the parent IDs of the group:

  print "    isa $_\n" foreach $group->parents;

title

This returns the title of the group:

  print " Title: " . $group->title . "\n";

is_series

This returns whether the group is a series (or instead a group of groups):

  print "Series: " . $group->is_series . "\n";

SEE ALSO

TV::Anytime

BUGS

Please report any bugs or feature requests to bug-TV-Anytime@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

Leon Brocard acme@astray.com

LICENCE AND COPYRIGHT

Copyright (c) 2005, Leon Brocard acme@astray.com. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.