NAME

Krang::ElementClass::Media - media element class


SYNOPSIS

   $class = pkg('ElementClass::Media')->new(name => "media");


DESCRIPTION

Provides a simple wrapper around TopLevel that media elements can use to identify themselves.


INTERFACE

All the normal Krang::ElementClass::TopLevel attributes and methods are available.

In addition, ElementClass::Media provides:

An element_class_name method that returns the name of the first toplevel element that inherits from ElementClass::Media.

A publish method that is called when a Media object is published.

An unpublish method that is called when a Media object is deleted.