Bric::Biz::ElementType::Subelement

Name

Bric::Biz::ElementType::Subelement - Maps a subelement ElementType to its parent's Element Types with occurrence relations and place.

Synopsis

use Bric::Biz::ElementType::Subelement;

# Constructors.
my $subelem = Bric::Biz::ElementType::Subelement->new($init);
my $subelems_href = Bric::Biz::ElementType::Subelement->href($params);

# Instance methods.
my $element_type_id = $subelem->get_parent_element_type_id;
$subelem->set_parent_element_type_id($element_type_id);

my $min = $subelem->get_min_occurrence;
$subelem->set_min_occurrence($min);

my $max = $subelem->get_max_occurrence;
$subelem->set_max_occurrence($max);

my $place = $subelem->get_place;
$subelem->set_place($place);

$subelem->save;

Description

This subclass of Bric::Biz::ElementType manages the relationship between parent ElementTypes and subelement ElementTypes. It contains information on the minimum and maximum occurrence that can be used, and also the place it should appear in when displaying. This class provides accessors to the relevant properties, as well as an href() method to help along the use of a Bric::Util::Coll object.

Interface

This class inherits the majority of its interface from Bric::Biz::ElementType. Only additional methods are documented here.

Constructors

##############################################################################

Public Instance Methods

Notes

NONE.

Author

David Wheeler

See Also

Bric::Biz::ElementType,