Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/handlers/views_handler_filter_group_by_numeric.inc
11 11
 * @ingroup views_filter_handlers
12 12
 */
13 13
class views_handler_filter_group_by_numeric extends views_handler_filter_numeric {
14
  function query() {
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function query() {
15 19
    $this->ensure_my_table();
16 20
    $field = $this->get_field();
17 21

  
......
20 24
      $this->{$info[$this->operator]['method']}($field);
21 25
    }
22 26
  }
23
  function op_between($field) {
27

  
28
  /**
29
   * {@inheritdoc}
30
   */
31
  public function op_between($field) {
24 32
    $placeholder_min = $this->placeholder();
25 33
    $placeholder_max = $this->placeholder();
26 34
    if ($this->operator == 'between') {
......
32 40
    }
33 41
  }
34 42

  
35
  function op_simple($field) {
43
  /**
44
   * {@inheritdoc}
45
   */
46
  public function op_simple($field) {
36 47
    $placeholder = $this->placeholder();
37 48
    $this->query->add_having_expression($this->options['group'], "$field $this->operator $placeholder", array($placeholder => $this->value['value']));
38 49
  }
39 50

  
40
  function op_empty($field) {
51
  /**
52
   * {@inheritdoc}
53
   */
54
  public function op_empty($field) {
41 55
    if ($this->operator == 'empty') {
42 56
      $operator = "IS NULL";
43 57
    }
......
48 62
    $this->query->add_having_expression($this->options['group'], "$field $operator");
49 63
  }
50 64

  
51
  function ui_name($short = FALSE) {
65
  /**
66
   * {@inheritdoc}
67
   */
68
  public function ui_name($short = FALSE) {
52 69
    return $this->get_field(parent::ui_name($short));
53 70
  }
54 71

  
55
  function can_group() { return FALSE; }
72
  /**
73
   * {@inheritdoc}
74
   */
75
  public function can_group() {
76
    return FALSE;
77
  }
78

  
56 79
}

Formats disponibles : Unified diff