handler_argument_string.inc 579 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Views argument handler class for handling string fields.
  4. */
  5. class SearchApiViewsHandlerArgumentString extends SearchApiViewsHandlerArgument {
  6. /**
  7. * Set up the query for this argument.
  8. *
  9. * The argument sent may be found at $this->argument.
  10. */
  11. public function query($group_by = FALSE) {
  12. if (empty($this->value)) {
  13. if (!empty($this->options['break_phrase'])) {
  14. views_break_phrase_string($this->argument, $this);
  15. }
  16. else {
  17. $this->value = array($this->argument);
  18. }
  19. }
  20. parent::query($group_by);
  21. }
  22. }