man Bric::Util::Grp::MediaType () - Interface to Bric::Util::MediaType Groups

NAME

Bric::Util::Grp::MediaType - Interface to Bric::Util::MediaType Groups

VITALS

Version
$LastChangedRevision$
Date
$LastChangedDate: 2004-11-09 10:38:37 -0800 (Tue, 09 Nov 2004) $
Subversion ID
$Id: MediaType.pm 6071 2004-11-09 18:38:37Z theory $

SYNOPSIS

See Bric::Util::Grp

DESCRIPTION

See Bric::Util::Grp.

INTERFACE

Constructors

Inherited from Bric::Util::Grp.

Class Methods

get_supported_classes

  my $supported_classes = Bric::Util::Grp::MediaType->get_supported_classes;

This will return an anonymous hash of the supported classes in the group as keys with the short name as a value. The short name is used to construct the member table names and the foreign key in the table.

get_list_classes

  my @list_classes = Bric::Util::Grp::MediaType->get_list_classes;

Returns a list or anonymous array of the supported classes in the group that can have their CWlist() methods called in succession to assemble a list of member objects. This data varies from that stored in the keys in the hash reference returned by CWget_supported_classes in that some classes' CWlist() methods may inherit from others, and we don't want the same CWlist() method executed more than once.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

get_object_class_id

 my $class_id = Bric::Util::Grp::MediaType->get_object_class_id;

If this method returns an ID, then all objects returne as members of this class of group will be instances of the class represented by that ID. If no ID is returned, then member objects will not be forced into the single class.

get_class_id

  my $class_id = Bric::Util::Grp::MediaType->get_class_id;

Returns the Bric::Util::Class object ID representing this class.

get_secret

  my $secret = Bric::Util::Grp::MediaType->get_secret;

Returns false, because groups of this class are not secret groups, but groups that can be used by users.

my_class

  my $class = Bric::Util::Grp::MediaType->my_class;

Returns the Bric::Util::Class object representing this class.

member_class

  my $class = Bric::Util::Grp::MediaType->member_class;

Returns the Bric::Util::Class object representing the members of this group.

Instance Methods

Inherited from Bric::Util::Grp.

AUTHOR

David Wheeler <david@kineticode.com>

SEE ALSO

Bric::Util::Grp
Bric::Util::MediaType