class views_data_export_plugin_style_export_xml in Views data export 6
Same name and namespace in other branches
- 6.3 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml
- 6.2 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml
- 7 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml
- 7.3 plugins/views_data_export_plugin_style_export_xml.inc \views_data_export_plugin_style_export_xml
Generalized style plugin for export plugins.
Hierarchy
- class \views_data_export_plugin_style_export extends \views_plugin_style
Expanded class hierarchy of views_data_export_plugin_style_export_xml
1 string reference to 'views_data_export_plugin_style_export_xml'
- views_data_export_views_plugins in ./
views_data_export.views.inc - Implementation of hook_views_plugins().
File
- plugins/
views_data_export_plugin_style_export_xml.inc, line 12 - Plugin include file for export style plugin.
View source
class views_data_export_plugin_style_export_xml extends views_data_export_plugin_style_export {
/**
* Set options fields and default values.
*
* @return
* An array of options information.
*/
function option_definition() {
$options = parent::option_definition();
$options['transform'] = array(
'default' => TRUE,
'translatable' => FALSE,
);
$options['transform_type'] = array(
'default' => 'dash',
'translatable' => FALSE,
);
return $options;
}
/**
* Options form mini callback.
*
* @param $form
* Form array to add additional fields to.
* @param $form_state
* State of the form.
* @return
* None.
*/
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['transform'] = array(
'#type' => 'checkbox',
'#title' => t('Transform spaces'),
'#default_value' => $this->options['transform'],
'#description' => t('Transform spaces to valid XML in field labels (spaces create invalid XML markup). Note that invalid XML tag characters will always be converted.'),
);
$form['transform_type'] = array(
'#type' => 'select',
'#title' => t('Transform type'),
'#default_value' => $this->options['transform_type'],
'#options' => array(
'dash' => t('Dash'),
'underline' => t('Underline'),
'camel' => t('camelCase'),
'pascal' => t('PascalCase'),
),
'#process' => array(
'views_process_dependency',
),
'#dependency' => array(
'edit-style-options-transform' => array(
TRUE,
),
),
);
}
}