Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/handlers/views_handler_argument_group_by_numeric.inc | ||
---|---|---|
10 | 10 |
* |
11 | 11 |
* @ingroup views_argument_handlers |
12 | 12 |
*/ |
13 |
class views_handler_argument_group_by_numeric extends views_handler_argument { |
|
14 |
function query($group_by = FALSE) { |
|
13 |
class views_handler_argument_group_by_numeric extends views_handler_argument { |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function query($group_by = FALSE) { |
|
15 | 19 |
$this->ensure_my_table(); |
16 | 20 |
$field = $this->get_field(); |
17 | 21 |
$placeholder = $this->placeholder(); |
... | ... | |
19 | 23 |
$this->query->add_having_expression(0, "$field = $placeholder", array($placeholder => $this->argument)); |
20 | 24 |
} |
21 | 25 |
|
22 |
function ui_name($short = FALSE) { |
|
26 |
/** |
|
27 |
* {@inheritdoc} |
|
28 |
*/ |
|
29 |
public function ui_name($short = FALSE) { |
|
23 | 30 |
return $this->get_field(parent::ui_name($short)); |
24 | 31 |
} |
25 | 32 |
|
26 |
function get_sort_name() { |
|
33 |
/** |
|
34 |
* {@inheritdoc} |
|
35 |
*/ |
|
36 |
public function get_sort_name() { |
|
27 | 37 |
return t('Numerical', array(), array('context' => 'Sort order')); |
28 | 38 |
} |
39 |
|
|
29 | 40 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules