1 views_handler_argument_string.inc views_handler_argument_string::get_formula()

Get the formula for this argument.

$this->ensure_my_table() MUST have been called prior to this.

File

core/modules/views/handlers/views_handler_argument_string.inc, line 148
Definition of views_handler_argument_string.

Class

views_handler_argument_string
Basic argument handler to implement string arguments that may have length limits.

Code

function get_formula() {
  return "SUBSTRING($this->table_alias.$this->real_field, 1, " . intval($this->options['limit']) . ")";
}