man Bric::Biz::OutputChannel::Element () - Maps Output Channels to Elements.
NAME
Bric::Biz::OutputChannel::Element - Maps Output Channels to Elements.
VERSION
$LastChangedRevision$
DATE
$LastChangedDate: 2004-08-12 17:13:34 -0700 (Thu, 12 Aug 2004) $
SYNOPSIS
use Bric::Biz::OutputChannel::Element;
# Constructors. my $oce = Bric::Biz::OutputChannel->new($init); my $oces_href = Bric::Biz::OutputChannel->href($params);
# Instance methods. my $element_id = $oce->get_element_id; $oce->set_element_id($element_id); $oce->set_enabled_on; $oce->set_enabled_off; if ($oce->is_enabled) { } # do stuff. $oce->save;
DESCRIPTION
This subclass of Bric::Biz::OutputChannel manages the relationship between output channels and elements (Bric::Biz::AssetType objects). It does so by providing accessors to properties relevant to the relationship, as well as an CWhref() method to help along the use of a Bric::Util::Coll object.
INTERFACE
This class inherits the majority of its interface from Bric::Biz::OutputChannel. Only additional methods are documented here.
Constructors
Constructs a new Bric::Biz::OutputChannel::Element object intialized with the values in the CW$init hash reference and returns it. The suported values for the CW$init hash reference are the same as those supported by CWBric::Biz::OutputChannel::Element->new, with the addition of the following: The ID of the output channel object on which the new Bric::Biz::OutputChannel::Element will be based. The relevant Bric::Biz::OutputChannel object will be looked up from the database. Note that all of the CW$init parameters documented in Bric::Biz::OutputChannel will be ignored if this parameter is passed. The output channel object on which the new Bric::Biz::OutputChannel::Element will be based. Note that all of the CW$init parameters documented in Bric::Biz::OutputChannel will be ignored if this parameter is passed. The ID of the Bric::Biz::AssetType object to which this output channel is mapped. A boolean value indicating whether the output channel will have assets output to it by default. Throws:
- *
- Unable to connect to database.
- *
- Unable to prepare SQL statement.
- *
- Unable to select column into arrayref.
- *
- Unable to execute SQL statement.
- *
- Unable to bind to columns to statement handle.
- *
- Unable to fetch row from statement handle. Side Effects: If you pass in an output channel object via the CWoc parameter, that output channel object will be converted into a Bric::Biz::OutputChannel::Element object. Notes: NONE. Returns a hash reference of Bric::Biz::OutputChannel::Element objects. Each hash key is a Bric::Biz::OutputChannel::Element ID, and the values are the corresponding Bric::Biz::OutputChannel::Element objects. Only a single parameter argument is allowed, CWelement_id. All of the output channels associated with that element ID will be returned. Throws:
- *
- Unable to connect to database.
- *
- Unable to prepare SQL statement.
- *
- Unable to select column into arrayref.
- *
- Unable to execute SQL statement.
- *
- Unable to bind to columns to statement handle.
- *
- Unable to fetch row from statement handle. Side Effects: NONE. Notes: NONE.
##############################################################################
Public Instance Methods
Returns the ID of the Element definition with which this output channel is associated. Throws: NONE. Side Effects: NONE. Notes: NONE. Sets the ID of the Element definition with which this output channel is associated. Throws: NONE. Side Effects: NONE. Notes: NONE. Enables this output channel to have assets ouptut to it by default. Throws: NONE. Side Effects: NONE. Notes: NONE. Sets this output channel to not have assets ouptut to it by default. Throws: NONE. Side Effects: NONE. Notes: NONE. Returns true if the this output channel is set to have assets output to it by default, and false if it is not. Throws: NONE. Side Effects: NONE. Notes: NONE. Marks this output channel-element association to be removed. Call the CWsave() method to remove the mapping from the database. Throws: NONE. Side Effects: NONE. Notes: NONE. Saves the output channel. Throws:
- *
- Bric::_get() - Problems retrieving fields.
- *
- Unable to connect to database.
- *
- Unable to prepare SQL statement.
- *
- Unable to execute SQL statement.
- *
- Unable to select row.
- *
- Incorrect number of args to _set.
- *
- Bric::_set() - Problems setting fields. Side Effects: NONE. Notes: NONE.
NOTES
NONE.
AUTHOR
David Wheeler <david@wheeler.net>
SEE ALSO
Bric::Biz::OutputChannel, Bric::Biz::AssetType,