00001 <?php 00002 00008 class views_handler_argument_group_by_numeric extends views_handler_argument { 00009 function query($group_by = FALSE) { 00010 $this->ensure_my_table(); 00011 $field = $this->get_field(); 00012 $placeholder = $this->placeholder(); 00013 00014 $this->query->add_having_expression(0, "$field = $placeholder", array($placeholder => $this->argument)); 00015 } 00016 00017 function ui_name($short = FALSE) { 00018 return $this->get_field(parent::ui_name($short)); 00019 } 00020 00021 function get_sort_name() { 00022 return t('Numerical', array(), array('context' => 'Sort order')); 00023 } 00024 }