midcom_helper_datamanager_widget_imageThis is a widget to handle image attachments.
This widget should only be used with the image 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_image_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
"image" => array (
"description" => "Image",
"datatype" => "image",
"widget_image_simple" => true
),CSS Styles in use by the Widget
The fieldset is set to fieldset.image. 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 image, both have the same UI.
The format selection dropdowns are of select.dropdown.
The download link is a simple paragraph within the enclosing fieldset.
The preview link is a nested div: div.image_preview surrounds the entire preview area, div.image_frame surrounds any displayed image.
Located in /midcom/helper/datamanager/widget_image.php (line 53)
midcom_helper_datamanager_widget | --midcom_helper_datamanager_widget_image
array
$_commands
(line 109)
The array with the commands to execute (for the type)
string
$_fieldname_delete
(line 61)
Fieldname constant
string
$_fieldname_description
(line 69)
Fieldname constant
string
$_fieldname_filename
(line 77)
Fieldname constant
string
$_fieldname_mimetype
(line 85)
Fieldname constant
string
$_fieldname_storetype
(line 93)
Fieldname constant
string
$_fieldname_thumbtype
(line 101)
Fieldname constant
bool
$_simple
(line 117)
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.
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_image
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:48 +0100 by phpDocumentor 1.3.0RC3