Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/handlers/views_handler_sort_group_by_numeric.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_sort_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_sort_group_by_numeric extends views_handler_sort { |
14 |
function init(&$view, &$options) { |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function init(&$view, &$options) { |
|
15 | 19 |
parent::init($view, $options); |
16 | 20 |
|
17 | 21 |
// Initialize the original handler. |
... | ... | |
20 | 24 |
} |
21 | 25 |
|
22 | 26 |
/** |
23 |
* Called to add the field to a query.
|
|
27 |
* {@inheritdoc}
|
|
24 | 28 |
*/ |
25 |
function query() { |
|
29 |
public function query() {
|
|
26 | 30 |
$this->ensure_my_table(); |
27 | 31 |
|
28 | 32 |
$params = array( |
... | ... | |
32 | 36 |
$this->query->add_orderby($this->table_alias, $this->real_field, $this->options['order'], NULL, $params); |
33 | 37 |
} |
34 | 38 |
|
35 |
function ui_name($short = FALSE) { |
|
39 |
/** |
|
40 |
* {@inheritdoc} |
|
41 |
*/ |
|
42 |
public function ui_name($short = FALSE) { |
|
36 | 43 |
return $this->get_field(parent::ui_name($short)); |
37 | 44 |
} |
45 |
|
|
38 | 46 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules