NAME

Bric::Biz::Asset::Business::Parts::Tile::Data - The tile class that contains the business data

VERSION

$Revision: 1.2.2.4 $

DATE

$Date: 2001/11/06 23:18:33 $

SYNOPSIS

# Creation of New Objects
$tile = Bric::Biz::Asset::Business::Parts::Tile::Data->new( $param)
$tile = Bric::Biz::Asset::Business::Parts::Tile::Data->lookup( { id => $id })
($tile_list, @tiles) = Bric::Biz::Asset::Business::Parts::Tile::Data->list
                ( $criteria )

# Retrieval of Object IDs
($id_list || @ids) = = Bric::Biz::Asset::Business::Parts::Tile::Data->list_ids
                ( $criteria )

# Manipulation of Data Field
$tile = $tile->set_data( $data_asset )
$data_asset = $tile->get_data()

DESCRIPTION

This class holds the Business Asset Parts Data objects in a tile

INTERFACE

Constructors

$tile = Bric::Biz::Asset::Business::Parts::Tile::Data->new($init)

This will create a new tile object with the given state defined by the optional initial state argument

Supported Keys:

*

active

*

obj_type (story || media)

*

obj_id

*

place

*

element_data_id

*

parent_id

throws:

NONE

side effects:

NONE

notes:

NONE

$tile = Bric::Biz::Asset::Business::Parts::Tile::Data->lookup( $criteria )

This will return an existing tile object that is defined by the given criteria

throws:

NONE

side effects:

NONE

notes:

NONE

(@ts||$ts) = Bric::Biz::Assets::Business::Parts::Tile::Data->list($param)

This will return a list or list ref of tiles that match the given criteria

Supported Keys:

*

active

*

obj

*

obj_type

*

obj_id

*

ref_type

*

ref_id

*

place *

*

element_data_id

*

parent_id

throws:

NONE

side effects:

NONE

notes:

NONE

Destructors

$self->DESTROY

a dummy method to save auto load some time

Public Class Methods

(@ids || $ids) = Bric::Biz::Assets::Business::Parts::Tile::Data->list_ids($p)

This will return a list or list ref of tile ids that match the given criteria

Supported Keys:

throws:

NONE

side effects:

NONE

notes:

NONE

Public Instance Methods

$atd = $data->get_element_data_obj()

Returns the asset type data object associated with this data tile

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$tile = $tile->set_data($value)

This will create the attribute on the business asset and store it in this tile

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$data = $tile->get_data()

Returns the given business data from the tile

throws:

NONE

side effects:

NONE

notes:

NONE

$self = $self->prepare_clone()

Business Data has to clone its self from time to time. Since tiles store the business data, this method prepares them to be cloned. It will set the id to undef and will be updated with new info come save time

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

undef = $tile->is_container()

Returns the fact that this is not a container tile

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

($self || $data) = $self->is_autopopulated()

Tells if this is an autopopulated tile

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$tile = $tile->lock_val()

For tiles that are autopopulated, this will prevent the value from being autopopulated

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$tile = $tile->unlock_val()

unsets the lock val flag

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

($tile || undef) = $tile->is_locked();

Returns if the tile has been locked

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$tile = $tile->save()

Saves the chenges made to the database

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

PRIVATE

Private Class Methods

_do_list($class, $param, $ids)

Called by list or list_ids this returns either a list of ids or a list of objects, depending on the caller

Throws:

"Object of type $obj_class not allowed to be tiled"

"improper args for list"

Side Effects:

NONE

Notes:

NONE

Private Instance Methods

_do_insert()

inserts the row into the database

Throws:

'Object must be a media or story to add tiles'

Side Effects:

NONE

Notes:

NONE

$self = $self->_do_update()

Updates the row in the database

Throws:

'Object must be a media or story to add tiles'

Side Effects:

NONE

Notes:

NONE

$at_obj = $self->_get_element_object()

Returns the asset type data object

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$attr_obj = $self->_get_sql_type()

Returns the sql type for this object.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$name = $self->_get_table_name()
$name = _get_table_name($object_type);

Returns the name of the table this object uses. This method can act as a class or instance method depending on how its called.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

NOTES

NONE

AUTHOR

"Michael Soderstrom" <miraso@pacbell.net> Bricolage Engineering

SEE ALSO

perl, Bric, Bric::Biz::Asset, Bric::Biz::Asset::Business, Bric::Biz::Asset::Business::Parts::Tile

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 403:

You forgot a '=back' before '=head2'

Around line 405:

'=item' outside of any '=over'

Around line 418:

You forgot a '=back' before '=head2'

Around line 422:

'=item' outside of any '=over'

Around line 456:

You forgot a '=back' before '=head2'

Around line 762:

You forgot a '=back' before '=head1'

Around line 770:

'=item' outside of any '=over'

Around line 860:

You forgot a '=back' before '=head2'

Around line 862:

'=item' outside of any '=over'