Bric::Biz::Asset::Business::Media - The parent class of all media objects
$Revision: 1.4.2.3 $
$Date: 2001/11/06 23:18:33 $
This will create a new media object with an optionaly defined intiial state
active
priority
title - same as name
name - Will be over ridden by title
description
workflow_id
element__id - Required unless asset type object passed
element - the object required unless id is passed
source__id - required
cover_date - will set expire date in conjunction with the source
media_type_id
category__id
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This will return a media asset that matches the criteria defined
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
returns a list or list ref of media objects that match the criteria defined
name - the same as the title field
title
description
uri
source__id
id - the media id
version
user__id - returns the versions that are checked out by the user, otherwise returns the most recent version
return_versions - returns past version objects as well
active - Will default to 1
inactive - Returns only inactive objects
workflow__id
element__id
priority
publish_date_start - if end is left blank will return everything after the arg
publish_date_end - if start is left blank will return everything before the arg
cover_date_start - if end is left blank will return everything after the arg
cover_date_end - if start is left blank will return everything before the arg
expire_date_start - if end is left blank will return everything after the arg
expire_date_end - if start is left blank will return everything before the arg
simple - a single OR search that hits name, description and uri.
Throws:
Unable to connect to database.
Unable to prepare SQL statement.
Unable to select column into arrayref.
Unable to execute SQL statement.
Unable to bind to columns to statement handle.
Unable to fetch row from statement handle.
Side Effects:
NONE
Notes:
NONE
dummy method to not waste the time of AUTOLOAD
returns a list or list ref of media object ids that match the criteria defined
Supported Keys:
See List method
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns a list of the names of fields that are registered in the database as being autopopulatable for a given sub class
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.
Returns the class id of the Media class
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Associates this media asset with the given category
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the category id that has been associated with this media object
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the object of the category that this is a member of
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the uri of the media object for the Bricolage application server.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the path of the media object on the Bricolage file system.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the media type object associated with this object.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Will get a file handle from apache and a name that is associated will store it in a versioned manner
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the file handle for this given media object
Throws:
"Error getting File"
Side Effects:
NONE
Notes:
NONE
The will return the location of the file on the file system, relative to MEDIA_FILE_ROOT.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
This is the size of the media file in bytes
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Reverts the current version to a prior version
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Clones the media object
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Saves the object to the database doing either an insert or an update
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Called by list will return objects or ids depending on who is calling
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the contributors from a cache or looks em up
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Inserts a row into the mapping table for contributors
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Updates the contributor mapping table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Deletes the rows from these mapping tables
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
returns a hash ref of the fields that are to be autopopulated from this type of media object.
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Returns the attribute object from a cache or creates a new record
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Inserts a media record into the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Preforms the SQL that updates the media table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Preforms the sql that inserts a record into the media instance table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Preforms the sql that updates the media_instance table
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Removes the media row from the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Removes the instance row from the database
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Populates the object from a database row
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Updates the row in the data base
Throws:
NONE
Side Effects:
NONE
Note:
NONE
returns the attribute object for this story
Throws:
NONE
Side Effects:
NONE
Notes:
NONE
Some additional fields may be needed here such as a field for what kind of object this represents etc.
"Michael Soderstrom" <miraso@pacbell.net> Bricolage Engineering
perl, Bric, Bric::Biz::Asset, Bric::Biz::Asset::Business
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 '=head1'
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
'=item' outside of any '=over'