midcom_helper_datamanager_widget_blobThis is a widget to handle binary attachments.
This widget should only be used with the blob datatype. It will show a bunch of meta-data fields (unless in simple mode). Deletion is handled through a checkbox while saving the datamanager form.
Configuration parameters:
widget_blob_simple: Set this to true to reduce the field to a very simple upload field without the ability to set mime-type, filename and file description.
Sample configuration
"blob" => array (
"description" => "Download",
"datatype" => "blob",
"widget_blob_simple" => true
),CSS Styles in use by the Widget
The fieldset is set to fieldset.blob. The inputfields are input.shorttext for all text fields and input.fileupload for the actual upload field. The deletion checkbox is of the class input.checkbox.
Note, that while the field is empty, the fieldset is only used, when the full-scale widget is used. The simple widget does not use it. While editing an existing blob, both have the same UI.
The download link is a simple paragraph within the enclosing fieldset.
The preview link is a nested div: div.blob_preview surrounds the entire preview area, div.image_frame surrounds any displayed image.
Located in /midcom/helper/datamanager/widget_blob.php (line 51)
midcom_helper_datamanager_widget | --midcom_helper_datamanager_widget_blob
array
$_commands
(line 91)
The array with the commands to execute (for the type)
string
$_fieldname_delete
(line 59)
Fieldname constant
string
$_fieldname_description
(line 67)
Fieldname constant
string
$_fieldname_filename
(line 75)
Fieldname constant
string
$_fieldname_mimetype
(line 83)
Fieldname constant
bool
$_simple
(line 99)
Set to true if the simple upload widget should be shown.
Inherited from midcom_helper_datamanager_widget
midcom_helper_datamanager_widget::$missingrequired
midcom_helper_datamanager_widget::$required
midcom_helper_datamanager_widget::$_datamanager
midcom_helper_datamanager_widget::$_field
midcom_helper_datamanager_widget::$_fieldname
midcom_helper_datamanager_widget::$_l10n
midcom_helper_datamanager_widget::$_l10n_midcom
midcom_helper_datamanager_widget::$_value
The widget will use a field group to put all related fields together, unless we're in simple upload mode.
The widget will use a field group to put all related fields together, unless we're in simple upload mode.
Evaluates the various controls and populates the command array for processing through datatype_blob
Inherited From midcom_helper_datamanager_widget
midcom_helper_datamanager_widget::midcom_helper_datamanager_widget()
midcom_helper_datamanager_widget::draw_helptext()
midcom_helper_datamanager_widget::draw_view()
midcom_helper_datamanager_widget::draw_widget()
midcom_helper_datamanager_widget::draw_widget_end()
midcom_helper_datamanager_widget::draw_widget_start()
midcom_helper_datamanager_widget::get_css_classes_required()
midcom_helper_datamanager_widget::get_value()
midcom_helper_datamanager_widget::set_value()
midcom_helper_datamanager_widget::_constructor()
midcom_helper_datamanager_widget::_read_formdata()
Documentation generated on Mon, 21 Nov 2005 18:24:36 +0100 by phpDocumentor 1.3.0RC3