Bric::Biz::ElementType::Parts::FieldType

NAME

Bric::Biz::ElementType::Parts::FieldType - Bricolage Field Type management

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

$field = Bric::Biz::ElementType::Parts::FieldType->new( $initial_state )

$field = Bric::Biz::ElementType::Parts::FieldType->lookup( { id => $id } )

($field_list || @fields) = Bric::Biz::ElementType::Parts::FieldType->list($criteria)

($ids || @ids) = Bric::Biz::ElementType::Parts::FieldType->list_ids($criteria)


$id    = $field->get_id()

# Get/Set the name of this field.
$field = $field->set_key_name($name)
$name  = $field->get_key_name()

# Get/set the description for this field.
$field = $field->set_description($description)
$desc  = $field->get_description()

# Get/Set the maximum length for the data in this field.
$field = $field->set_max_length($max_length)
$max   = $field->get_max_length()

# Get/Set whether this field is required or not.
$field       = $field->set_required(1 || undef)
(1 || undef) = $field->get_required()

# Get/Set the quantifier flag.
$field      = $field->set_quantifier( $quantifier )
$quantifier = $field->get_quantifier()

# Get/Set the data type (or SQL type) of this field.
$field    = $field->set_sql_type();
$sql_type = $field->get_sql_type()

# Set the active flag for this field.
$field       = $field->activate()
$field       = $field->deactivate()
(undef || 1) = $field->is_active()

(undef || $self) = $field->remove()

$field = $field->save()

DESCRIPTION

This class holds the data about data that will eventualy populate Published Assets. The key_name and description fields can be set as can a number of rules.

The max length field. This will allow someone to set the max length allowed for their field. It will have a rule set upon it so that the max length will not be greater than any available storage. The field length will map to what ever storarge is available for a field just larger than the one listed ( Thought needs to be given how to handle those that change their length after data has been entered as it might switch storage catagories)

The quantifier field will state whether the field may be repeated indefinitely, zero or more times, zero or one, one, or an arbitrary number of times.

the sql type will map to a type in the DB ( varchar or date )

INTERFACE

Constructors

Destructors

Public Class Methods

Public Instance Methods

PRIVATE

Private Class Methods

Private Instance Methods

Needing to be documented.

Private Functions

NONE

NOTES

NONE

AUTHOR

michael soderstrom ( miraso@pacbell.net )

SEE ALSO

perl,Bric,Bric::Biz::Asset::Business::Story,Bric::Biz::ElementType,