Bric::Biz::Contact

NAME

Bric::Biz::Contact - Interface to Contacts

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

use Bric::Biz::Contact

# Constructors.
my $c = Bric::Biz::Contact->new($init);
my $c = Bric::Biz::Contact->lookup({ id => $id });
my @c = Bric::Biz::Contact->list($params);

# Class Methods.
my @cids = Bric::Biz::Contact->list_ids($params);
my $methods = Bric::Biz::Contact->my_meths;

# Contact Type managment.
my @types = Bric::Biz::Contact->list_types;
my $types_href = Bric::Biz::Contact->href_types;
my @types = Bric::Biz::Contact->list_alertable_types;
my $types_href = Bric::Biz::Contact->href_alertable_types;
my $type_ids_href = Bric::Biz::Contact->href_alertable_type_ids;
my $bool = Bric::Biz::Contact->edit_type($type, $description);
my $bool = Bric::Biz::Contact->deactivate_type($type);

# Instance Methods.
my $id = $c->get_id;
my $type = $c->get_type;
$c = $c->set_type($type);
my $desc = $c->get_description;
my $value = $c->get_value;
$c = $c->set_value($value);

$c = $c->activate;
$c = $c->deactivate;
$c = $c->is_active;

$c = $c->save;

DESCRIPTION

This class manages contacts. Currently, contacts are only associated with Bric::Biz::Person objects, but they could conceivably be associated with other objects, e.g., Bric::Biz::Org.

A contact is a method (other than snail mail) to contact a person. Default contact types include "Primary Email," "Secondary Email," "Office Phone," "Mobile Phone," "AOL Instant Messenger," etc. These types can be modified and new contact types can be added via this class' class methods. Each individual Bric::Biz::Contact object has an associated type, the type's description, and a value. Each is also associated with another object, so they will often be accessed from that object (see Bric::Biz::Person for an example).

INTERFACE

Constructors

Destructors

Public Class Methods

Public Instance Methods

PRIVATE

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NOTES

NONE.

AUTHOR

David Wheeler

SEE ALSO

Bric