You are here

log_handler_field_timestamp.inc in Log entity 7

Contains the log timestamp field handler.

File

includes/views/handlers/log_handler_field_timestamp.inc
View source
<?php

/**
 * @file
 * Contains the log timestamp field handler.
 */

/**
 * Field handler for log timestamps.
 */
class log_handler_field_timestamp extends views_handler_field_date {

  /**
   * Called to determine what to tell the click sorter.
   */
  function click_sort($order) {

    // First apply the parent click sort.
    parent::click_sort($order);

    // Always order by log ID in addition to timestamp. Use the same condition
    // in parent::click_sort().
    if (isset($this->field_alias)) {
      $this->query
        ->add_orderby($this->table_alias, 'id', $order);
    }
  }

}

Classes

Namesort descending Description
log_handler_field_timestamp Field handler for log timestamps.