Bric::Biz::Asset::Business::Parts::Tile::Data - Data (Field) Element
$LastChangedRevision$
$LastChangedDate: 2004-08-12 17:13:34 -0700 (Thu, 12 Aug 2004) $
# Creation of New Objects
$data = Bric::Biz::Asset::Business::Parts::Tile::Data->new($params);
$data = Bric::Biz::Asset::Business::Parts::Tile::Data->lookup({ id => $id });
@data = Bric::Biz::Asset::Business::Parts::Tile::Data->list($params);
# Retrieval of Object IDs
@ids = = Bric::Biz::Asset::Business::Parts::Tile::Data->list_ids($params);
# Manipulation of Data Field
$data = $data->set_data( $data_value );
$data_value = $data->get_data;
This class contains the contents of field elements, also known as data elements. These are the objects that hold the values of story element fields. This class inherits from Bric::Biz::Asset::Business::Parts::Tile.
Construct a new data element object. The supported initial attributes are:
A string identifying the type of document the new data element is associated with. It's value can be "story " or "media".
The ID of the story or media document the new data element is associated with.
The order of this element relative to the other subelements of the parent element.
The ID of the Bric::Biz::AssetType::Parts::Data object that defines the structure of the new data element.
The ID of the container element that is the parent of the new data element.
A boolean value indicating whether the container element is active or inactive.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Looks up a data element in the database by its ID and returns it. The lookup parameters are:
The ID of the data element to lookup. Required.
A story or media document object with which the data element is associated. Required unless object_type is specified.
The type of document object with which the data element is associated. Must be either "media" or "story". Required unless object is specified.
Throws:
Side Effects: NONE.
Notes: NONE.
Searches for and returns a list or anonymous array of data element objects. The supported parameters that can be searched are:
A story or media object with which the data elements are associated. Required unless object_type is specified.
The type of document with which the data elements are associated. Required unless object is specified.
The ID of a story or data object with wich the data elements are associated. Can only be used if object_type is also specified and object is not specified.
The name of the data elements. Since the SQL LIKE operator is used with this search parameter, SQL wildcards can be used.
The key name of the data elements. Since the SQL LIKE operator is used with this search parameter, SQL wildcards can be used.
The ID of the container element that is the parent element of the data elements.
The ID of the Bric::Biz::AssetType::Parts::Data object that specifies the structure of the data elements.
A boolean value indicating whether the returned data elements are active or inactive.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.
Returns a list or anonymous array of data element IDs. The search parameters are the same as for list().
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
See also Bric::Biz::Asset::Business::Parts::Tile, from which Bric::Biz::Asset::Business::Parts::Tile::Data inherits.
Returns the ID of the Bric::Biz::AssetType::Parts::Data object that describes this element.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Sets the ID of the Bric::Biz::AssetType::Parts::Data object that describes this element.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns the Bric::Biz::AssetType::Parts::Data object that defines the structure of this data element.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
An alias for $data->get_name.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
An alias for $data->get_key_name.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Sets the value of the data element.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns the value of this data element. If the SQL type of the data object is "date", then $format, if it is passed, will be used to format the date. Otherwise, the format set in the preferences will be used.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Prepares the data element to be cloned, such as when a new version of a document is created, or when a document itself is cloned.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns false, since data elements are not container elements.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns true if this data element's value is autopopulated.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
For autopopulated data elements, this method prevents the value from being autopopulated.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Allows auotpopulated data elements to be autopopulated.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns true if the tile has been locked.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Saves the changes to the data element to the database.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Called by list() or list_ids(), this method returns either a list of ids or a list of objects, depending on the third argument.
Throws:
Object of type $obj_class not allowed to be tiled.
Improper args for list.
Side Effects: NONE.
Notes: NONE.
Called by save(), this method inserts the data element into the database.
Throws:
Object must be a media or story to add tiles.
Side Effects: NONE.
Notes: NONE.
Called by save(), this method updates the data element into the database.
Throws:
Object must be a media or story to add tiles.
Side Effects: NONE.
Notes: NONE.
Returns the sql type for the value of this data element.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Returns the name of the table this data element uses. This method can act as a class or instance method depending on how it's called.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
NONE
Michael Soderstrom <miraso@pacbell.net>
perl, Bric, Bric::Biz::Asset, Bric::Biz::Asset::Business, Bric::Biz::Asset::Business::Parts::Tile