Bric::Biz::Asset::Formatting - AN object housing the formatting Assets
$Revision: 1.16.2.5 $
$Date: 2002/03/12 02:39:38 $
# Creation of Objects
$fa = Bric::Biz::Asset::Formatting->new( $init )
$fa = Bric::Biz::Asset::Formatting->lookup( { id => $id })
($fa_list || @fas) = Bric::Biz::Asset::Formatting->list( $param )
($faid_list || @fa_ids) = Bric::Biz::Asset::Formatting->list_ids( $param )
# get / set the data that is contained with in
$fa = $fa->set_data()
$data = $fa->get_data()
# get the file name that this will be deployed to
$file_name = $fa->get_file_name()
# get / set the date that this will activate
$date = $fa->get_deploy_date()
$fa = $fa->set_deploy_date($date)
# get the output channel that this is associated with
$output_channel_id = $fa->get_output_channel__id()
# get the asset type that this is associated with
$element__id = $fa->get_element__id()
# get the category that this is associated with
$category_id = $fa->get_category_id()
# Methods Inheriated from Bric::Biz::Asset
# Class Methods
$key_name = Bric::Biz::Asset->key_name()
%priorities = Bric::Biz::Asset->list_priorities()
$data = Bric::Biz::Asset->my_meths
# looking up of objects
($asset_list || @assets) = Bric::Biz::Asset->list( $param )
# General information
$asset = $asset->get_id()
$asset = $asset->set_name($name)
$name = $asset->get_name()
$asset = $asset->set_description($description)
$description = $asset->get_description()
$priority = $asset->get_priority()
$asset = $asset->set_priority($priority)
# User information
$usr_id = $asset->get_user__id()
$modifier = $asset->get_modifier()
# Version information
$vers = $asset->get_version();
$vers_id = $asset->get_version_id();
$current = $asset->get_current_version();
$checked_out = $asset->get_checked_out()
# Expire Data Information
$asset = $asset->set_expire_date($date)
$expire_date = $asset->get_expire_date()
# Desk stamp information
($desk_stamp_list || @desk_stamps) = $asset->get_desk_stamps()
$desk_stamp = $asset->get_current_desk()
$asset = $asset->set_current_desk($desk_stamp)
# Workflow methods.
$id = $asset->get_workflow_id;
$obj = $asset->get_workflow_object;
$asset = $asset->set_workflow_id($id);
# Access note information
$asset = $asset->add_note($note)
($note_list || @notes) = $asset->get_notes()
# Access active status
$asset = $asset->deactivate()
$asset = $asset->activate()
($asset || undef) = $asset->is_active()
$asset = $asset->save()
# returns all the groups this is a member of
($grps || @grps) = $asset->get_grp_ids()
This has changed, it will need to be updated in a bit
new will only be called by Bric::Biz::Asset::Formatting's inherited classes
Supported Keys:
description
data
deploy_date
expire_date
workflow_id
output_channel - Required unless output channel id passed
output_channel__id - Required unless output channel object passed
element - the at object
element__id - the id of the asset type
category - the category object
category__id - the category id
file_type - the type of the template file - this will be used as the extension for the file_name derived from the element name. Currently supported file_type values are 'mc', 'pl' and 'tmpl'.
Throws:
"Method not implemented"
Side Effects:
NONE
Notes:
NONE
Returns an object that matches the parameters
Suported Keys
The unique id of formatting assets
Pass to request a specific version otherwise the most current will be returned
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This will return a list of blessed objects that match the defined criteria
Supported Keys:
active - defaults to true
user__id - if defined will return the checked out versions that are checked out to the user with this id. Otherwise it will return the most current non checked out versions
return_versions - will return all the versions of the given templates
id
workflow__id
output_channel__id
element__id
category__id
name
file_name
deploy_date_start
deploy_date_stop
expire_date_start
expire_date_stop
simple - a single OR search that hits name and filename
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.
Returns a list of ids that match the given parameters
See List Method
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the key name of this class.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns an anonymous hash of instrospection data for this object. If called with a true argument, it will return an ordered list or anonymous array of intrspection data. The format for each introspection item introspection is as follows:
Each hash key is the name of a property or attribute of the object. The value for a hash key is another anonymous hash containing the following keys:
name - The name of the property or attribute. Is the same as the hash key when an anonymous hash is returned.
disp - The display name of the property or attribute.
get_meth - A reference to the method that will retrieve the value of the property or attribute.
get_args - An anonymous array of arguments to pass to a call to get_meth in order to retrieve the value of the property or attribute.
set_meth - A reference to the method that will set the value of the property or attribute.
set_args - An anonymous array of arguments to pass to a call to set_meth in order to set the value of the property or attribute.
type - The type of value the property or attribute contains. There are only three types:
len - If the value is a 'short' value, this hash key contains the length of the field.
search - The property is searchable via the list() and list_ids() methods.
req - The property or attribute is required.
props - An anonymous hash of properties used to display the property or attribute. Possible keys include:
type - The display field type. Possible values are
text
textarea
password
hidden
radio
checkbox
select
length - The Length, in letters, to display a text or password field.
maxlength - The maximum length of the property or value - usually defined by the SQL DDL.
rows - The number of rows to format in a textarea field.
cols - The number of columns to format in a textarea field.
vals - An anonymous hash of key/value pairs reprsenting the values and display names to use in a select list.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
Sets the deployment date for this template
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the deploy date set upon this template
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the deploy status of the formatting asset
Throws:
NONE
Side Effects:
NONE
Notes:
this will return the deploy date
sets the deploy status for this template
Throws:
NONE
Side Effect:
NONE
Notes:
This is really the deploy date
An alias for 'get_file_name'
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the file path of this template.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Return the name of the output channel.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Return the output channel associated with this Formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Return the name of the AssetType associated with this object.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Return the AssetType object for this formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Sets the category id for this formatting asset
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Get the category ID for this formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the category object that has been associated with this formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the path from the category
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Get the category name of the category object associated with this formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Set the main data for the formatting asset. In future incarnations there might be more data points that surround this, but not for now.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the chunk of text that makes up this template.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This will create a flag to add a new record to the instance table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This preforms a checkin. It will make sure that there is not another conflict version that exists. If so it will fail and one must merge the conflicts. Otherwise it will promote the version and disassociate the user from the object
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Return whether this is the most current version or not.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This cancles a checkout. This will delete the record from the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This will take an older version and copy its data to this version
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
this will update or create a record in the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Executes for list and list_ids
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the output channel object associated with this formatting object
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the asset type object that was associated with this formatting asset.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the category object that this is associated with
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the attribute object that is associated with this formatting object
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Inserts a row into the formatting table that represents a new formatting Asset
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Inserts a row associated with an instance of a formatting asset
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Updates the formatting table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Updates the row related to the instance of the formatting asset
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Removes the row associated with this formatting asset from the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Removes the instance specific row from the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Builds the file name for a template. If $file_type, $name, $cat or $oc are not passed, they'll be fetched (or for $file_type, computed) from $self.
Throws: NONE.
Side Effects: NONE.
Notes: NONE.
NONE
NONE
michael soderstrom - miraso@pacbell.net
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
Expected '=item *'
Expected '=item *'
Expected '=item *'
Expected '=item *'
Expected '=item *'
Expected '=item *'
Expected '=item *'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
=back without =over