123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- class chado_views_handler_field_math extends views_handler_field_math {
- function init (&$view, $options) {
- include_once('chado_wrapper_functions.inc');
- parent::init($view,$options);
- }
-
-
- function option_definition() {
- $options = parent::option_definition();
- $options['type'] = array('default' => 'separator');
- $options['separator'] = array('default' => ', ');
- return $options;
- }
-
-
- function options_form(&$form, &$form_state) {
- parent::options_form($form, $form_state);
-
- $form['type'] = array(
- '#type' => 'radios',
- '#title' => t('Display type'),
- '#options' => array(
- 'ul' => t('Unordered list'),
- 'ol' => t('Ordered list'),
- 'separator' => t('Simple separator'),
- ),
- '#default_value' => $this->options['type'],
- );
- $form['separator'] = array(
- '#type' => 'textfield',
- '#title' => t('Separator'),
- '#default_value' => $this->options['separator'],
- '#process' => array('views_process_dependency'),
- '#dependency' => array('radio:options[type]' => array('separator')),
- );
- }
-
-
- function query () {
- parent::query();
- $this->aggregated = chado_wrapper_is_aggregated_by_join($this);
- }
-
-
- function pre_render (&$values) {
-
-
- $this->aggregated = chado_wrapper_is_aggregated_by_result($this, $values);
-
-
- chado_wrapper_split_array_agg_results($this, $values);
-
- }
-
-
- function render($values) {
- return chado_wrapper_render_items($this, $values);
- }
-
- function parent_render($val) {
- return parent::render($val);
- }
-
- }
|