tripal_views_handler_sort.inc 445 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Base sort handler that has no options and performs a simple sort.
  4. *
  5. * @ingroup views_sort_handlers
  6. */
  7. class tripal_views_handler_sort extends views_handler_sort {
  8. /**
  9. * Called to add the sort to a query.
  10. */
  11. function query() {
  12. $field_name = $this->real_field;
  13. $this->ensure_my_table();
  14. // Add the field.
  15. $this->query->add_orderby($this->table_alias, $this->real_field, $this->options['order']);
  16. }
  17. }