Bric::Biz::OutputChannel

NAME

Bric::Biz::OutputChannel - Bricolage Output Channels.

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

use Bric::Biz::OutputChannel;

# Constructors.
$oc = Bric::Biz::OutputChannel->new($init);
$oc = Bric::Biz::OutputChannel->lookup({ id => $id});
my $ocs_aref = Bric::Biz::OutputChannel->list($params);
my @ocs = Bric::Biz::OutputChannel->list($params);

# Class Methods.
my $id_aref = Bric::Biz::OutputChannel->list_ids($params);
my @ids = Bric::Biz::OutputChannel->list_ids($params);

# Instance Methods.
$id = $oc->get_id;
my $name = $oc->get_name;
$oc = $oc->set_name( $name );
my $description = $oc->get_description;
$oc = $oc->set_description($description);
if ($oc->get_primary) { # do stuff }
$oc = $oc->set_primary(1); # or pass undef.
my $site_id = $oc->get_site_id;
$site = $site->set_site_id($site_id);
my $protocol = $oc->get_protocol;
$site = $site->set_protocol($protocol);

# URI Format instance methods.
my $uri_format = $oc->get_uri_format;
$oc->set_uri_format($uri_format);
my $fixed_uri_format = $oc->get_fixed_uri_format;
$oc->set_fixed_uri_format($uri_fixed_format);
my $uri_case = $oc->get_uri_case;
$oc->set_uri_case($uri_case);
if ($oc->can_use_slug) { # do stuff }
$oc->use_slug_on;
$oc->use_slug_off;

# Output Channel Includes instance methods.
my @ocs = $oc->get_includes;
$oc->set_includes(@ocs);
$oc->add_includes(@ocs);
$oc->del_includes(@ocs);

# Active instance methods.
$oc = $oc->activate;
$oc = $oc->deactivate;
$oc = $oc->is_active;

# Persistence methods.
$oc = $oc->save;

DESCRIPTION

Holds information about the output channels that will be associated with templates and elements.

PUBLIC INTERFACE

Public Constructors

Destructors

Public Class Methods

Public Instance Methods

PRIVATE

Private Class Methods

Private Instance Methods

Private Functions

NOTES

NONE.

AUTHORS

Michael Soderstrom

David Wheeler

SEE ALSO

perl, Bric, Bric::Biz::Asset::Business, Bric::Biz::ElementType, Bric::Biz::Asset::Template.