You are here

views_autorefresh_handler_argument_base.inc in Views Auto-Refresh 7

Same filename and directory in other branches
  1. 7.2 views/views_autorefresh_handler_argument_base.inc

File

views/views_autorefresh_handler_argument_base.inc
View source
<?php

class views_autorefresh_handler_argument_base extends views_handler_argument {

  /**
   * Construct the instance.
   */
  function construct() {
    parent::construct();
    $this->operator = '>';
  }

  /**
   * Build the query based upon the formula.
   */
  function query($group_by = FALSE) {
    $this
      ->ensure_my_table();
    $this->query
      ->add_where_expression(0, "{$this->table_alias}.{$this->real_field} {$this->operator} :base", array(
      ':base' => $this->argument,
    ));
  }

}